summaryrefslogtreecommitdiff
path: root/src/pardes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/pardes.zig')
-rw-r--r--src/pardes.zig8
1 files changed, 8 insertions, 0 deletions
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;