diff --git a/mux/src/tab.rs b/mux/src/tab.rs index 68b3d58ee..8eec504fb 100644 --- a/mux/src/tab.rs +++ b/mux/src/tab.rs @@ -1748,6 +1748,13 @@ impl TabInner { } fn set_active_pane(&mut self, pane: &Arc) { + if self.zoomed.is_some() { + if !configuration().unzoom_on_switch_pane { + return; + } + self.toggle_zoom(); + } + if let Some(item) = self .iter_panes_ignoring_zoom() .iter()