fix: be able to write to empty files
fix: be able to write to empty files

Previously when trying to type in an empty file the program would error,
now it no longer does that.

Signed-off-by: Ricky Ayoub <44fa5957f4f7072d53e3fb30f94c8dfbc297dec3@redhat.com>

vgmoose/chat-edit