mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-29 23:31:03 +03:00
fix(panes): closing a stacked pane should relayout (#2312)
This commit is contained in:
parent
bef3c9c89d
commit
44abfc9a16
@ -2202,12 +2202,7 @@ impl Tab {
|
||||
let closed_pane = self.tiled_panes.remove_pane(id);
|
||||
self.set_force_render();
|
||||
self.tiled_panes.set_force_render();
|
||||
let closed_pane_is_stacked = closed_pane
|
||||
.as_ref()
|
||||
.map(|p| p.position_and_size().is_stacked)
|
||||
.unwrap_or(false);
|
||||
if self.auto_layout && !self.swap_layouts.is_tiled_damaged() && !closed_pane_is_stacked
|
||||
{
|
||||
if self.auto_layout && !self.swap_layouts.is_tiled_damaged() {
|
||||
self.swap_layouts.set_is_tiled_damaged();
|
||||
// only relayout if the user is already "in" a layout, otherwise this might be
|
||||
// confusing
|
||||
|
Loading…
Reference in New Issue
Block a user