fix handling empty files

This commit is contained in:
alice pellerin
2026-03-18 19:18:08 -05:00
parent 0a98df9000
commit a699c0a371
6 changed files with 59 additions and 37 deletions
+1 -2
View File
@@ -50,8 +50,7 @@ const CHUNKS_PER_LINE: usize = BYTES_PER_LINE / BYTES_PER_CHUNK;
// - utf8?
// - diffing
// TODO: opening empty file crashes (or deleting entire file)
// - cursor is NOT guaranteed to be in-bounds..?
// TODO: quit should confirm if unsaved changes
// when AsciiChar is stabilized, use it instead of char everywhere