From 4f190b0ff68c168f62961b67e8f00bab0863b5a5 Mon Sep 17 00:00:00 2001 From: Ivan Moiseev <55442381+Mrreadiness@users.noreply.github.com> Date: Sat, 8 Jun 2024 02:53:31 +0200 Subject: [PATCH] Fix: slow close non last tab (#5441) * fix: slow close non last tab * fix: found better place * Update mux/src/window.rs --------- Co-authored-by: Wez Furlong --- mux/src/window.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mux/src/window.rs b/mux/src/window.rs index 84205741f4a..a086e3a3191 100644 --- a/mux/src/window.rs +++ b/mux/src/window.rs @@ -131,6 +131,8 @@ impl Window { if len > 0 && self.active >= len { self.set_active_without_saving(len - 1); + } else { + self.invalidate(); } }