diff options
Diffstat (limited to 'core/Jump.zig')
| -rw-r--r-- | core/Jump.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/Jump.zig b/core/Jump.zig index a83b6ab4..5cc9d624 100644 --- a/core/Jump.zig +++ b/core/Jump.zig @@ -274,6 +274,11 @@ pub fn trackJump(p: *Pardes) void { /// always have, at the newest entry. 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 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)) |
