1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 13:52:55 +03:00

fix is_zoomed property in tab:get_panes_with_info()

refs: #3404
This commit is contained in:
Wez Furlong 2023-03-30 07:44:38 -07:00
parent d6e8271b5b
commit c766d5e465
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387
3 changed files with 6 additions and 1 deletions

View File

@ -39,6 +39,7 @@ As features stabilize some brief notes about them will accumulate here.
not propagated when using `--daemonize`. #3397 #2686
* mux: server would lock and then unlock the pid/lock file when it re-executed,
rendering it useless.
* `tab:panes_with_info()` reported incorrect `is_zoomed` value. #3404
### 20230326-111934-3666303c

View File

@ -4,3 +4,6 @@
Returns the [MuxTab](../MuxTab/index.md) that contains this pane.
Note that this method can return `nil` when *pane* is a GUI-managed overlay
pane (such as the debug overlay), because those panes are not managed by the
mux layer.

View File

@ -1008,6 +1008,7 @@ impl TabInner {
}
let active_idx = self.active;
let zoomed_id = self.zoomed.as_ref().map(|p| p.pane_id());
let root_size = self.size;
let mut cursor = self.pane.take().unwrap().cursor();
@ -1039,7 +1040,7 @@ impl TabInner {
panes.push(PositionedPane {
index,
is_active: index == active_idx,
is_zoomed: false,
is_zoomed: zoomed_id == Some(pane.pane_id()),
left,
top,
width: dims.cols as _,