1
1
mirror of https://github.com/wez/wezterm.git synced 2024-08-17 10:10:23 +03:00

make activate-pane CLI honor unzoom_on_switch_pane

This commit is contained in:
Quan Tong 2024-04-16 11:29:37 +07:00 committed by Wez Furlong
parent 18d643510f
commit ba25f7df78

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()