summaryrefslogtreecommitdiff
path: root/src/normal.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-29 20:51:15 -0300
committerGabriel Schneider <[email protected]>2026-10-29 21:03:37 -0300
commitfdf59131f68db19fc4818b6e5db7c9fe4cc609fd (patch)
tree1d3296044f387ec55f66a8d188279ce3eaaa63dc /src/normal.zig
parenta8d9eb9e5051521aaeb1a95584729794059b5d83 (diff)
downloadpardes-fdf59131f68db19fc4818b6e5db7c9fe4cc609fd.tar.gz
pardes-fdf59131f68db19fc4818b6e5db7c9fe4cc609fd.zip
pdf: Esc in a PDF pane drops the selection or the search highlights the page shows, and with none goes back a pane as Esc does everywhere else; Shift-Esc still goes at once
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/normal.zig')
-rw-r--r--src/normal.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/normal.zig b/src/normal.zig
index f214121a..25e2deec 100644
--- a/src/normal.zig
+++ b/src/normal.zig
@@ -1016,6 +1016,8 @@ pub fn handlePdfNormal(p: *Pardes, pane: *Pane, key: Key) void {
if (result.page_changed) panes.Pdf.resetPageChrome(pane);
switch (result.host) {
.none => {},
+ // typed again by a macro, Esc is only the page's
+ .last => if (p.macro.replaying == 0) exec.runBuiltin(p, .Last, p.active, "", null),
.leader => {
p.leader_on = true;
p.leader_n = 0;