diff --git a/mux/src/window.rs b/mux/src/window.rs index 977372ef856..a086e3a3191 100644 --- a/mux/src/window.rs +++ b/mux/src/window.rs @@ -131,8 +131,8 @@ impl Window { if len > 0 && self.active >= len { self.set_active_without_saving(len - 1); - } else if len > 0 { - self.set_active_without_saving(self.active); + } else { + self.invalidate(); } }