diff options
Diffstat (limited to 'src/builtins.zig')
| -rw-r--r-- | src/builtins.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/builtins.zig b/src/builtins.zig index a12ddebe..a924396d 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -1842,10 +1842,10 @@ pub const LookPrev = struct { /// Go back to the last place jumped from in another pane. pub const Last = struct { pub fn run(c: Ctx) void { - var i = c.p.njumps; + var i = c.p.jumps.n; while (i > 0) { i -= 1; - const j = c.p.jumps[i]; + const j = c.p.jumps.list[i]; if (j.serial == 0) continue; // a closed file's: Back reopens it, Last goes to a pane // Restore the cursor without recentering the pane's retained view. if (j.pane != c.id) return look.focusPaneLine(c.p, j.pane, .{ .line = j.line, .col = j.col }, .keep); |
