diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 23:58:54 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 01:16:28 -0300 |
| commit | a3e38a8fd01c54b1fab8a7eaf225ac6147c74330 (patch) | |
| tree | a2f697389827f58bf6c6c69302b789bc770de889 /src/edit_cmd.zig | |
| parent | 54b0c95fc5522b5ad48d857bb0a08c253c17ece3 (diff) | |
| download | pardes-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/edit_cmd.zig')
| -rw-r--r-- | src/edit_cmd.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
