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/Stream.zig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Stream.zig') diff --git a/src/Stream.zig b/src/Stream.zig index a7a0bf53..8953e660 100644 --- a/src/Stream.zig +++ b/src/Stream.zig @@ -1464,10 +1464,9 @@ test "Stream: a Grep's rows recoloured are made again, never written, and a dump // (the plain rows' kept word is theirs), and the rows are new ones. _ = pardes.walk.digest(Pardes, p); try testing.expect(f.location_rows.ptr != plain); - // An edit drops them with the text they were for (dropped_marks): a - // join's load of the session is it, digest for digest. + // An edit drops them: a join's load of the session is it, digest for + // digest. panes.File.setContent(p, f, try p.gpa.dupe(u8, "value\n")); - try testing.expect(f.dropped_marks != null); const bytes = try pardes.dump.dumpBytes(p); defer p.gpa.free(bytes); const q = try pardes.dump.load(testing.allocator, p.opts, bytes, null); -- cgit v1.3