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.
This commit is contained in:
parent
4ca8a2b327
commit
04fb9de8fa
1 changed files with 2 additions and 2 deletions
|
|
@ -630,7 +630,7 @@ pub(crate) fn screen_thread_main(
|
||||||
}
|
}
|
||||||
ScreenInstruction::CloseFocusedPane => {
|
ScreenInstruction::CloseFocusedPane => {
|
||||||
screen.get_active_tab_mut().unwrap().close_focused_pane();
|
screen.get_active_tab_mut().unwrap().close_focused_pane();
|
||||||
screen.render();
|
screen.update_tabs();
|
||||||
}
|
}
|
||||||
ScreenInstruction::SetSelectable(id, selectable, tab_index) => {
|
ScreenInstruction::SetSelectable(id, selectable, tab_index) => {
|
||||||
screen.get_indexed_tab_mut(tab_index).map_or_else(
|
screen.get_indexed_tab_mut(tab_index).map_or_else(
|
||||||
|
|
@ -646,7 +646,7 @@ pub(crate) fn screen_thread_main(
|
||||||
}
|
}
|
||||||
ScreenInstruction::ClosePane(id) => {
|
ScreenInstruction::ClosePane(id) => {
|
||||||
screen.get_active_tab_mut().unwrap().close_pane(id);
|
screen.get_active_tab_mut().unwrap().close_pane(id);
|
||||||
screen.render();
|
screen.update_tabs();
|
||||||
}
|
}
|
||||||
ScreenInstruction::ToggleActiveTerminalFullscreen => {
|
ScreenInstruction::ToggleActiveTerminalFullscreen => {
|
||||||
screen
|
screen
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue