summaryrefslogtreecommitdiff
path: root/core/Jump.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Jump.zig')
-rw-r--r--core/Jump.zig9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/Jump.zig b/core/Jump.zig
index ccdb8fdc..a83b6ab4 100644
--- a/core/Jump.zig
+++ b/core/Jump.zig
@@ -27,12 +27,19 @@ cur: usize = 0,
/// (a query answered: Ctrl-o goes back to where it was asked).
force: bool = false,
-pub const replica = .{ .len = .{.{ "list", "n" }} };
+/// `cur` held to the places there are (walk.zig `.place`).
+pub const replica = .{ .len = .{.{ "list", "n" }}, .place = .{.{ "cur", "lastCur" }} };
+
+pub fn lastCur(j: *const Jump) usize {
+ return j.n -| 1;
+}
const Mouse = pardes.Mouse;
const recent_path_cap = limits.host_path_cap;
pub const Loc = struct {
+ /// Its pane's slot (walk.zig `.index`), that pane while `serial` says.
+ pub const replica = .{ .index = .{.{ "pane", Pardes, "panes" }} };
pane: u16,
/// 0 once its pane has closed: a file's entry stays, reopened by a
/// jump to it from `path_hash`'s recent entry.