aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/app.js
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-20 16:00:38 -0400
committerCraig Jennings <c@cjennings.net>2026-06-20 16:00:38 -0400
commit98356a0b76991bddef82dd05657bf7b420fdcda0 (patch)
tree82721214a8e04bcc5a8e24cf8d2e0a1d8cc47af1 /scripts/theme-studio/app.js
parent7bee1dd7496933074f264b1fda9a0ec91c81c812 (diff)
downloaddotemacs-98356a0b76991bddef82dd05657bf7b420fdcda0.tar.gz
dotemacs-98356a0b76991bddef82dd05657bf7b420fdcda0.zip
fix(ai-term): keep the F9 toggle reversible in a 3+ window layout
In a layout where the agent had its own split window (e.g. code on top, a working window, and the agent below), toggling the agent off deleted its window correctly, but toggling back on reused the working window at the edge -- displacing its buffer and collapsing three windows to two. The slot-reuse that avoids a third window on a fresh show was firing on a re-show after the agent's own window was already deleted. Flag the toggle-off that deletes the agent's own window; on the next toggle-on, reuse-edge-window consumes the flag and falls through to a fresh re-split, so the agent returns to its own window and the other windows are untouched. The flag only changes the 3+ window case -- after a delete in a 2-window slot-reuse layout one window remains, where re-split and reuse-edge already coincide, so the existing reuse-edge tests are unaffected.
Diffstat (limited to 'scripts/theme-studio/app.js')
0 files changed, 0 insertions, 0 deletions