diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-30 16:43:44 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:17 -0300 |
| commit | 319325b74f3c97cad9988faebc7c6afda26cad08 (patch) | |
| tree | 8b12f6862c0906fbc39f1d5b9ac100688833978d /src/web/libc/include/stdio.h | |
| parent | 79fb1b77b8c9993fb36c250daf36970807f767c9 (diff) | |
| download | pardes-319325b74f3c97cad9988faebc7c6afda26cad08.tar.gz pardes-319325b74f3c97cad9988faebc7c6afda26cad08.zip | |
A 9P write scrolls only the view: dot moves as acme's textinsert moves it, never to the end of the write
writeData, flushBatch and writeBody showed what they wrote with
showOffset, which put the cursor at the write's end. The cursor is dot's
head, so a data write or a body append moved dot there, and a `sel` write
after it replaced the wrong text. showOffset now scrolls the view to the
offset and leaves the cursor, pinned, where it was. Dot shifts only by
the rule it already followed, acme's: an insert before dot shifts it, one
at its start or inside it grows it, one at its end or after it leaves it.
The test covers each case, then a body append followed by a sel write.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/web/libc/include/stdio.h')
0 files changed, 0 insertions, 0 deletions
