From f689040c9c74944ac54c00a58ee76846baa1cff8 Mon Sep 17 00:00:00 2001 From: obeme-qq Date: Mon, 27 Apr 2026 20:33:44 +0300 Subject: [PATCH] fix: change zoom reset scope to active tab fixed inconsistencies with zoom. Added a separate function for resetting the zoom for the current tab, used it for the ctrl 0 shortcut. --- src/main.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index fbcda25..5199504 100644 --- a/src/main.rs +++ b/src/main.rs @@ -596,6 +596,18 @@ impl App { } } + fn reset_active_pane_zoom(&mut self) { + if let Some(tab_model) = self.pane_model.active() { + for entity in tab_model.iter() { + if tab_model.is_active(entity) + && let Some(terminal) = tab_model.data::>(entity) + { + terminal.lock().unwrap().set_zoom_adj(0); + } + } + } + } + fn save_shortcuts_custom(&mut self) { self.config.shortcuts_custom = self.shortcuts_config.custom.clone(); match &self.config_handler { @@ -3197,7 +3209,7 @@ impl Application for App { return self.update_render_active_pane_zoom(message); } Message::ZoomReset => { - self.reset_terminal_panes_zoom(); + self.reset_active_pane_zoom(); return self.update_config(); } Message::ContextMenuPopupClosed(id) => {