Repository navigation
.gtui format 10 (reads v1..v10). Crate 0.15.1.
Fixed
-
A zero-byte
.gtuiopens as a new document instead of failing withjson: byte 0: unexpected end of input.touch empty.gtui && graph-tui empty.gtuinow behaves likenvim: empty buffer,
:wwrites it. Any empty file (not just.gtui) is treated the same way, and--dumpof one
prints the blank document rather than an error. -
Editing text in place with double-width characters no longer swallows them. The draft was written
one character per cell, so each CJK character's right half was overwritten by the next one; the
caret column was counted in characters as well, so it drifted half a cell per wide character.
Both now use display width: wide characters occupy two cells (the second is a blank continuation,
like the static text path), andUp/Downkeep the column in cells, landing on the character
boundary at or before it -- the same rule nvim uses.