summaryrefslogtreecommitdiff
path: root/src/ninep
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 23:58:54 -0300
committerGabriel Schneider <[email protected]>2026-11-05 01:16:28 -0300
commita3e38a8fd01c54b1fab8a7eaf225ac6147c74330 (patch)
treea2f697389827f58bf6c6c69302b789bc770de889 /src/ninep
parent54b0c95fc5522b5ad48d857bb0a08c253c17ece3 (diff)
downloadpardes-a3e38a8fd01c54b1fab8a7eaf225ac6147c74330.tar.gz
pardes-a3e38a8fd01c54b1fab8a7eaf225ac6147c74330.zip
File, terminal, edit: undo and redo are one undoStep(back) each, as Text.step already is, and their callers (normal, builtins, edit_cmd, file_watch, ninep/ctl's pager test, test/panes) say which way
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/ninep')
-rw-r--r--src/ninep/ctl.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig
index d075e24e..fd8f47d5 100644
--- a/src/ninep/ctl.zig
+++ b/src/ninep/ctl.zig
@@ -2708,7 +2708,7 @@ test "what a /pager open writes after its directory is the text: plain in the bo
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.
- panes.File.undo(p, pn);
+ 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);