summaryrefslogtreecommitdiff
path: root/src/normal.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-31 06:28:48 -0300
committerGabriel Schneider <[email protected]>2026-10-31 06:28:48 -0300
commita479792a1ab2b593642d7f648194bfa23ce01dba (patch)
tree96ddee7d879a9084daa07db43b0b7910b072a785 /src/normal.zig
parente179cc44fe5060c76a5b00c41e53f11209f5acd9 (diff)
parent4c761893e5b3fdae422622cfa02104ab36633045 (diff)
downloadpardes-a479792a1ab2b593642d7f648194bfa23ce01dba.tar.gz
pardes-a479792a1ab2b593642d7f648194bfa23ce01dba.zip
Merge the upstream daemon and replicated client/server refactor
Diffstat (limited to 'src/normal.zig')
-rw-r--r--src/normal.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/normal.zig b/src/normal.zig
index 9cac18b0..5bc24b08 100644
--- a/src/normal.zig
+++ b/src/normal.zig
@@ -659,6 +659,7 @@ fn executeNormalAction(p: *Pardes, t: *Text, semantic: modal.Normal.Action) void
t.select = false;
// typed again by a macro, Esc is only helix's
if (p.macro.replaying > 0) return;
+ tagline.exitHeader(p); // out of a header too, as Shift-Esc
return exec.runBuiltin(p, .Last, p.active, "", null);
},
.goto => |go| switch (go.target) {
@@ -713,6 +714,7 @@ fn executeNormalAction(p: *Pardes, t: *Text, semantic: modal.Normal.Action) void
.middle => {
// helix align_view_middle: the cursor's column to the middle
// of an unwrapped view
+ panes.File.geometry(pane);
if (pane.body_wrapped) return;
const line = text[modal.lineStartOffset(text, modal.lineAtOffset(text, cur))..modal.lineEndOffset(text, modal.lineAtOffset(text, cur))];
const w: usize = @intCast(@max(1, @as(i32, pane.cols) - @as(i32, panes.File.gutterWidth(pane))));
@@ -1015,6 +1017,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;