diff options
| author | Brooks Rady <b.j.rady@gmail.com> | 2021-08-30 05:20:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-30 09:50:36 +0530 |
| commit | 3e6fcffb27eef8bbc7ad2fa71edda15f29a04877 (patch) | |
| tree | 27f5facc369b1c9ee4383054c9177732d3733661 | |
| parent | fix(tab-bar): don't crash at small widths (diff) | |
| download | sl0ppij-3e6fcffb27eef8bbc7ad2fa71edda15f29a04877.tar.gz sl0ppij-3e6fcffb27eef8bbc7ad2fa71edda15f29a04877.tar.xz sl0ppij-3e6fcffb27eef8bbc7ad2fa71edda15f29a04877.zip | |
fix(ui): render correctly after tab closing (#670)
* fix(ui): render correctly after tab closing
* That was a silly bug...
| -rw-r--r-- | zellij-server/src/screen.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zellij-server/src/screen.rs b/zellij-server/src/screen.rs index 8d17d529..432b15fc 100644 --- a/zellij-server/src/screen.rs +++ b/zellij-server/src/screen.rs @@ -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(); } } |
