make activate-pane CLI honor unzoom_on_switch_pane

This commit is contained in:
Quan Tong authored and Wez Furlong committed 2024-05-05 13:16:50 -07:00
1 parent 18d643510f
commit ba25f7df78
1 file changed
+7
+7
View File
@@ -1748,6 +1748,13 @@ impl TabInner {
}
fn set_active_pane(&mut self, pane: &Arc<dyn Pane>) {
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()