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
1 changed files with 4 additions and 0 deletions
|
|
@ -266,11 +266,15 @@ impl Screen {
|
||||||
} else {
|
} else {
|
||||||
self.active_tab_index = self.tab_history.pop().unwrap();
|
self.active_tab_index = self.tab_history.pop().unwrap();
|
||||||
for t in self.tabs.values_mut() {
|
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 {
|
if t.position > active_tab.position {
|
||||||
t.position -= 1;
|
t.position -= 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self.update_tabs();
|
self.update_tabs();
|
||||||
|
self.render();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue