summaryrefslogtreecommitdiff
path: root/core/Jump.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Jump.zig')
-rw-r--r--core/Jump.zig7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/Jump.zig b/core/Jump.zig
index a4ecca04..b28698ee 100644
--- a/core/Jump.zig
+++ b/core/Jump.zig
@@ -158,7 +158,7 @@ const JumpsTest = struct {
try out.print("{s}{c}{d}", .{ if (out.end > 0) " " else "", letters[which], pane.body.cur_row + 1 });
} else return error.NoEnd;
const pane = t.p.panes[t.p.view().active].?;
- const said = pane.msg[0..pane.msg_len];
+ const said = t.p.messages.saidBy(pane);
try std.testing.expect(std.mem.indexOf(u8, said, if (delta < 0) "nothing further back" else "nothing further on") != null);
return out.buffered();
}
@@ -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))