From a3e38a8fd01c54b1fab8a7eaf225ac6147c74330 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 23:58:54 -0300 Subject: 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 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/edit_cmd.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/edit_cmd.zig') diff --git a/src/edit_cmd.zig b/src/edit_cmd.zig index 876c6157..8bde605b 100644 --- a/src/edit_cmd.zig +++ b/src/edit_cmd.zig @@ -197,7 +197,7 @@ pub fn run(p: *Pardes, id: usize, command: []const u8) void { } } if (res.undo != 0) { - for (0..@abs(res.undo)) |_| if (res.undo > 0) panes.File.undo(p, pane) else panes.File.redo(p, pane); + for (0..@abs(res.undo)) |_| panes.File.undoStep(p, pane, res.undo > 0); return; } pd.res = res; -- cgit v1.3