Commit 215c8b4
committed
mcp(fix[pane_tools]): Query tmux for zoom state instead of missing attr
why: `getattr(window, "window_zoomed_flag", "0")` always returned the
default `"0"` because `window_zoomed_flag` is not a field on libtmux's
`Window` object. This caused `zoom=True` on an already-zoomed pane to
toggle it OFF (since `pane.resize(zoom=True)` is a toggle), and
`zoom=False` on a zoomed pane to be a no-op.
what:
- Query zoom state via `window.cmd("display-message", "-p", "#{window_zoomed_flag}")`
- Preserve idempotent semantics: zoom=True ensures zoomed, zoom=False ensures unzoomed1 parent ef0ab7d commit 215c8b4
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
0 commit comments