aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Linford <tlinford@users.noreply.github.com>2021-10-07 13:41:06 +0200
committerGitHub <noreply@github.com>2021-10-07 13:41:06 +0200
commit04fb9de8fac40fe54b3691d4663bca9284ef6b93 (patch)
tree3481566f7cf850e3e578035fb0fe5752d43ba6ec
parentdocs(changelog): add options to default config file (diff)
downloadsl0ppij-04fb9de8fac40fe54b3691d4663bca9284ef6b93.tar.gz
sl0ppij-04fb9de8fac40fe54b3691d4663bca9284ef6b93.tar.xz
sl0ppij-04fb9de8fac40fe54b3691d4663bca9284ef6b93.zip
make sure tabs are updated when closing panes (#757)
* call update_tabs on closing panes * screen: avoid explit render after update_tabs update_tabs causes a render anyway, by updating plugins, and after that a render is requested.
-rw-r--r--zellij-server/src/screen.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/zellij-server/src/screen.rs b/zellij-server/src/screen.rs
index 373f17db..275d65d5 100644
--- a/zellij-server/src/screen.rs
+++ b/zellij-server/src/screen.rs
@@ -630,7 +630,7 @@ pub(crate) fn screen_thread_main(
}
ScreenInstruction::CloseFocusedPane => {
screen.get_active_tab_mut().unwrap().close_focused_pane();
- screen.render();
+ screen.update_tabs();
}
ScreenInstruction::SetSelectable(id, selectable, tab_index) => {
screen.get_indexed_tab_mut(tab_index).map_or_else(
@@ -646,7 +646,7 @@ pub(crate) fn screen_thread_main(
}
ScreenInstruction::ClosePane(id) => {
screen.get_active_tab_mut().unwrap().close_pane(id);
- screen.render();
+ screen.update_tabs();
}
ScreenInstruction::ToggleActiveTerminalFullscreen => {
screen