aboutsummaryrefslogtreecommitdiff
path: root/modules/custom-ordering.el
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
commit64916462f5c81b854d3fbc6f5c543ecf5ac25bf5 (patch)
tree4ac1275810afc50d6b52f90b534cd99d612c316b /modules/custom-ordering.el
parent2b7a3139e8f2aef5ca2e072a29e1892f517f77b7 (diff)
downloaddotemacs-64916462f5c81b854d3fbc6f5c543ecf5ac25bf5.tar.gz
dotemacs-64916462f5c81b854d3fbc6f5c543ecf5ac25bf5.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 'modules/custom-ordering.el')
0 files changed, 0 insertions, 0 deletions