diff options
Diffstat (limited to 'core/normal.zig')
| -rw-r--r-- | core/normal.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/normal.zig b/core/normal.zig index 2ec8a4da..ea2bbc31 100644 --- a/core/normal.zig +++ b/core/normal.zig @@ -249,7 +249,7 @@ fn objectJump(e: Editor, t: *Text, text: []const u8, range: modal.Selection, obj const tree = nodeTree(e, t, text) orelse return; var last = range; for (0..count) |_| { - const s = syntax.objectNext(tree.path, tree.root, tree.text, object, forward, tree.in(modal.selectionCursor(text, last))) orelse break; + const s = syntax.objectNext(tree.path, tree.root, tree.text, object, forward, tree.in(modal.selectionCursor(text, last)), null) orelse break; const next: modal.Selection = .{ .anchor = tree.out(s.from, false), .head = tree.out(s.to, s.to > s.from) }; if (std.meta.eql(next, last)) break; last = next; @@ -1317,7 +1317,7 @@ fn executeNormalAction(p: *Pardes, t: *Text, a: modal.Normal.Action) edit.Error! .view_scroll_down => if (t.what == .body) return t.scrollViewMove(p.settings.tab, text, range, 1), .view_scroll_up => if (t.what == .body) return t.scrollViewMove(p.settings.tab, text, range, -1), // The next and the previous of the changes this view shows (jj.zig). - .goto_change => if (@import("jj.zig").nextChange(p, pane, @intCast(@max(0, t.cur_row)), a.forward)) |line| + .goto_change => if (@import("jj.zig").nextChange(p, pane, @intCast(@max(0, t.cur_row)), a.forward, std.math.maxInt(usize))) |line| return pointMove(p.settings.tab, t, text, range, modal.lineStartOffset(text, line)), .goto_diagnostic, .goto_diagnostic_end => { // Once a Diagnostics query fed them, the diagnostics are this |
