From e5c10e836cbcc2f3409eb709683aba8a780d7ce7 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 00:08:11 -0300 Subject: File, edit: dropped marks go: an edit frees the location rows and pager colours it drops, and an undo back to the same text no longer brings them back (visible: a +Pager or a results buffer undone to its text is shown plain); the pager test in ninep/ctl says so and Stream's no longer asks for the field; File.State's walked shape changes (wire semantics) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/edit.zig | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/edit.zig') diff --git a/src/edit.zig b/src/edit.zig index 33b0f050..41859273 100644 --- a/src/edit.zig +++ b/src/edit.zig @@ -532,8 +532,6 @@ fn setEditTextSpan(p: *Pardes, t: *Text, new: []u8, known_end: ?modal.Cursor, sp f.location_rows = &.{}; f.pager_spans = &.{}; panes.File.setContentSpan(p, f, kept, null); - if (f.location_rows.len > 0) @import("locations.zig").freeRows(p.gpa, f.location_rows); - p.gpa.free(f.pager_spans); f.location_rows = rows; f.pager_spans = spans; return; -- cgit v1.3