mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-26 22:15:19 +03:00
fix(ui): render correctly after tab closing (#670)
* fix(ui): render correctly after tab closing * That was a silly bug...
This commit is contained in:
parent
e54dfab40f
commit
3e6fcffb27
@ -266,11 +266,15 @@ impl Screen {
|
||||
} else {
|
||||
self.active_tab_index = self.tab_history.pop().unwrap();
|
||||
for t in self.tabs.values_mut() {
|
||||
if t.position == self.active_tab_index.unwrap() {
|
||||
t.set_force_render()
|
||||
}
|
||||
if t.position > active_tab.position {
|
||||
t.position -= 1;
|
||||
}
|
||||
}
|
||||
self.update_tabs();
|
||||
self.render();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user