aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2021-04-06 17:55:48 +0200
committerGitHub <noreply@github.com>2021-04-06 17:55:48 +0200
commitc25eb04de99fb2e9a722ddec0e7d2b1e67415a69 (patch)
treee501b35f1cc57d6f6d6adb3cd5feb82b73e9f144 /src/client
parentfix(tabs): do not toggle fullscreen if there are no other panes (#258) (diff)
downloadsl0ppij-c25eb04de99fb2e9a722ddec0e7d2b1e67415a69.tar.gz
sl0ppij-c25eb04de99fb2e9a722ddec0e7d2b1e67415a69.tar.xz
sl0ppij-c25eb04de99fb2e9a722ddec0e7d2b1e67415a69.zip
fix(tabs): do not crash if closing pane in fullscreen (#259)
Diffstat (limited to 'src/client')
-rw-r--r--src/client/tab.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/tab.rs b/src/client/tab.rs
index c573bdd4..82c2639f 100644
--- a/src/client/tab.rs
+++ b/src/client/tab.rs
@@ -2076,6 +2076,9 @@ impl Tab {
}
}
pub fn close_pane_without_rerender(&mut self, id: PaneId) {
+ if self.fullscreen_is_active {
+ self.toggle_active_pane_fullscreen();
+ }
if let Some(pane_to_close) = self.panes.get(&id) {
let pane_to_close_width = pane_to_close.columns();
let pane_to_close_height = pane_to_close.rows();