diff options
author | Aram Drevekenin <aram@poor.dev> | 2023-02-08 17:50:45 +0100 |
---|---|---|
committer | Aram Drevekenin <aram@poor.dev> | 2023-02-08 17:50:45 +0100 |
commit | 4454c3a42fd244c29443be7addcd4d274be5b6d2 (patch) | |
tree | 6d9e7c249b23317f09a92067c654b73f7f66f1e7 /zellij-server/src | |
parent | 1fa22f46f61875903d9a249844368514473520be (diff) |
fix(stacked-panes): close last pane in stack
Diffstat (limited to 'zellij-server/src')
-rw-r--r-- | zellij-server/src/panes/tiled_panes/stacked_panes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zellij-server/src/panes/tiled_panes/stacked_panes.rs b/zellij-server/src/panes/tiled_panes/stacked_panes.rs index b5e26461d..40f5bb1b1 100644 --- a/zellij-server/src/panes/tiled_panes/stacked_panes.rs +++ b/zellij-server/src/panes/tiled_panes/stacked_panes.rs @@ -244,7 +244,7 @@ impl <'a>StackedPanes <'a>{ let err_context = || format!("Cannot determin if pane is one liner or not"); let panes = self.panes.borrow(); let pane_to_close = panes.get(id).with_context(err_context)?; - Ok(pane_to_close.position_and_size().rows.as_usize() == 1) + Ok(pane_to_close.position_and_size().rows.is_fixed()) } fn positions_in_stack(&self, id: &PaneId) -> Result<Vec<(PaneId, PaneGeom)>> { // find the full stack of panes around the given id, sorted by pane location top to bottom |