summaryrefslogtreecommitdiff
path: root/core/Jump.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Jump.zig')
-rw-r--r--core/Jump.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Jump.zig b/core/Jump.zig
index a4ecca04..5cc9d624 100644
--- a/core/Jump.zig
+++ b/core/Jump.zig
@@ -275,9 +275,10 @@ pub fn trackJump(p: *Pardes) void {
pub fn jumpBy(p: *Pardes, delta: i32) void {
const v = p.view();
// A reading pane's walk first (pick-ui SPEC ยง6.4). Past its newest
- // step, Ctrl-i is to step the Walk queue once the pickers make one;
- // until then, the jump list's.
+ // step, Ctrl-i steps the Walk queue a picker left (Pick.stepQueue);
+ // then the jump list's.
if (pardes.Trail.walkBy(p, v.active, delta)) return;
+ if (delta > 0 and pardes.Pick.stepQueue(p, v.active)) return;
const older = delta < 0;
// At an end of the list: said, not a step that silently does nothing.
if (v.jumps.n == 0 or (older and v.jumps.cur == 0) or (!older and v.jumps.cur + 1 >= v.jumps.n))