diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-28 16:12:29 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | 07a3f53993a27c886ccb3ed665acb9c8b34a2873 (patch) | |
| tree | 4a4cb5c3c21c7da4989c65a5db0ed01cbb0aa652 /src/detached/server.zig | |
| parent | cc66593d1432813c9af029ce3779ccba9ded8883 (diff) | |
| download | pardes-07a3f53993a27c886ccb3ed665acb9c8b34a2873.tar.gz pardes-07a3f53993a27c886ccb3ed665acb9c8b34a2873.zip | |
A tag's edited text stays alive until the next edit, so ms and md in a tag read it whole
setEditText freed the text a tag edit was handed once it had copied the
tag's own part out of it, but every caller reads that text back to place the
cursor, and surround goes on to edit it again: ms and md in a tag read freed
memory. The same held for a terminal without an edit buffer and a text with
no pane. The text is now kept until the next such edit (edit.retireEditText),
which covers every caller at once; the callers the audit found reading it
back are surround's two, the paste and replace paths, the number adjust, and
the insert-mode Enter.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/detached/server.zig')
0 files changed, 0 insertions, 0 deletions
