summaryrefslogtreecommitdiff
path: root/src/normal.zig
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/normal.zig
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/normal.zig')
-rw-r--r--src/normal.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/normal.zig b/src/normal.zig
index 8f777ec7..c7fc51a7 100644
--- a/src/normal.zig
+++ b/src/normal.zig
@@ -857,8 +857,8 @@ fn executeNormalAction(p: *Pardes, t: *Text, semantic: modal.Normal.Action) void
.indent => return edit.normalIndent(p, t, op.count, true),
.unindent => return edit.normalIndent(p, t, op.count, false),
.comment_toggle => return edit.normalToggleComment(p, t),
- .undo => return edit.doUndo(p, t),
- .redo => return edit.doRedo(p, t),
+ .undo => return edit.undoStep(p, t, true),
+ .redo => return edit.undoStep(p, t, false),
},
// Language shortcuts run the same builtins as tags and leader commands.
.lsp => |request| return switch (request) {