summaryrefslogtreecommitdiff
path: root/src/ninep/ctl.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/ninep/ctl.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/ninep/ctl.zig')
-rw-r--r--src/ninep/ctl.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig
index fd8f47d5..a584cc8f 100644
--- a/src/ninep/ctl.zig
+++ b/src/ninep/ctl.zig
@@ -2707,10 +2707,11 @@ test "what a /pager open writes after its directory is the text: plain in the bo
// An edit drops the colours (pager.zig's ponytail).
try testing.expectEqual(Status.ok, call(p, .{ .tag = 6, .op = .write, .node = Node.of(pn.serial, .body), .data = "more\n" }).reply.status);
try testing.expectEqual(@as(usize, 0), f.pager_spans.len);
- // Undone back to the paged text: its colours come back with it.
+ // Undone back to the paged text: the text comes back, its colours
+ // stay dropped (they were the program's, for the text it printed).
panes.File.undoStep(p, pn, true);
try testing.expectEqualStrings("red /a\nNext\n", f.content);
- try testing.expectEqual(@as(usize, 2), f.pager_spans.len);
+ try testing.expectEqual(@as(usize, 0), f.pager_spans.len);
// PagerColor off, and an open closed with no read: the same text, plain,
// in at the editor's next step (a close through a mount never waits).