summaryrefslogtreecommitdiff
path: root/src/Stream.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 00:08:11 -0300
committerGabriel Schneider <[email protected]>2026-11-05 01:16:28 -0300
commite5c10e836cbcc2f3409eb709683aba8a780d7ce7 (patch)
treec14a5152167f682853301f69c67ab8974d012ace /src/Stream.zig
parent8d647e9c9fc747c14a222a53f9e3db1ba7a07d01 (diff)
downloadpardes-e5c10e836cbcc2f3409eb709683aba8a780d7ce7.tar.gz
pardes-e5c10e836cbcc2f3409eb709683aba8a780d7ce7.zip
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 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/Stream.zig')
-rw-r--r--src/Stream.zig5
1 files changed, 2 insertions, 3 deletions
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);