From a98fca4546e5b99de07193297bac04abc85ab4ad Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 29 Sep 2026 12:43:17 -0300 Subject: A Jumplist entry is (closed) only while no pane has its file open A closed file's entries stayed closed after the file was opened again another way (a look, Recent), so Jumplist said (closed) of an open file and a step onto it reopened it. They are now that pane's as soon as a pane shows the file. Co-Authored-By: Claude Opus 5.5 --- src/pardes.zig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/pardes.zig') diff --git a/src/pardes.zig b/src/pardes.zig index 2649014a..1f136f2b 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -6806,6 +6806,14 @@ pub const Pardes = struct { if (!live) { if (j.path_hash == 0 or p.recentByHash(j.path_hash) == null) continue; kept.serial = 0; + // Open again in some pane (a look, Recent): the entry is that + // pane's, and closed only while no pane has the file. + for (p.panes, 0..) |slot, id| if (slot) |pane| if (recentDot(pane)) |d| { + if (std.hash.Wyhash.hash(0, d.path) != j.path_hash) continue; + kept.pane = @intCast(id); + kept.serial = pane.serial; + break; + }; } p.jumps[w] = kept; w += 1; -- cgit v1.3