wezterm: fix an issue where unzooming wouldn't resize the pane
The problem was that the pane resizes got optimized away because the tab size doesn't change as part of the zoom operation. We don't need to run the full resize logic for unzoom though, just need to re-apply the size to the unzoomed pane. We don't have a convenient way to do that, so we re-apply the sizes to all of the panes in the tab. refs: https://github.com/wez/wezterm/issues/157#issuecomment-701173561
This commit is contained in:
1 parent
3413bd97b9
commit
4ed2b1cd14
1 file changed
+3
-1
+3
-1
@@ -610,7 +610,9 @@ impl Tab {
|
||||
if let Some(pane) = self.get_active_pane() {
|
||||
pane.set_zoomed(false);
|
||||
}
|
||||
self.resize(size);
|
||||
|
||||
let mut root = self.pane.borrow_mut();
|
||||
apply_sizes_from_splits(root.as_mut().unwrap(), &size);
|
||||
} else {
|
||||
// We weren't zoomed, but now we want to zoom.
|
||||
// Locate the active pane
|
||||
|
||||
Reference in new issue
Block a user