summaryrefslogtreecommitdiff
path: root/src/panes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/panes.zig')
-rw-r--r--src/panes.zig4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/panes.zig b/src/panes.zig
index 2e1e9262..c4a32413 100644
--- a/src/panes.zig
+++ b/src/panes.zig
@@ -1035,15 +1035,13 @@ pub fn removePane(p: *Pardes, id: usize, to: ?usize) error{OutOfMemory}!void {
layout.removePane(p, id);
p.panes[id] = null;
if (kept) |k| p.store.close(p, k, gainer);
- // The finder's last pane takes the column with it.
- const finder_gone = if (emptied) |c| p.finder.emptied(p, c) else false;
if (p.active != id) return;
// No pane left: the session is over.
p.active = gainer orelse beside orelse anyPane(p) orelse {
p.quit = true;
return p.emit(.quit);
};
- if (emptied) |c| if (!finder_gone and p.header == null) tagline.enterHeader(p, c);
+ if (emptied) |c| if (p.header == null) tagline.enterHeader(p, c);
}
/// The pane Last should fall back to when the jumplist has nothing: the