diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-13 15:33:38 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-13 15:33:38 -0500 |
| commit | df2b59b9d6e75d7d9139cac1919eab558751d816 (patch) | |
| tree | 707ce55a611481bf833745b2aec2b81a9403d665 /tests/test-prog-shell--make-script-executable.el | |
| parent | 49d26758b35636e79c2887801fb0113f7da4b575 (diff) | |
| download | dotemacs-df2b59b9d6e75d7d9139cac1919eab558751d816.tar.gz dotemacs-df2b59b9d6e75d7d9139cac1919eab558751d816.zip | |
fix(ai-vterm): preserve single-window layout across F9 toggle
When the agent buffer is the only window in the frame, F9 buries it (correct) but the next F9 redisplayed it as a side split instead of restoring the full-frame layout -- the display-saved path always called `display-buffer-in-direction`, which insists on a split.
New `cj/--ai-vterm-last-was-bury` flag tracks which toggle-off path ran. `cj/ai-vterm` sets it to t in the bury branch (one-window-p) and nil in the delete-window branch. `cj/--ai-vterm-display-saved` checks the flag at toggle-on: if t and the frame is still single-window, it replaces the selected window's buffer in place rather than splitting. Either branch consumes the flag so it never stays stale.
5 tests in test-ai-vterm--single-window-toggle.el cover the flag's set/clear paths, the still-one-window guard, and the end-to-end roundtrip.
Diffstat (limited to 'tests/test-prog-shell--make-script-executable.el')
0 files changed, 0 insertions, 0 deletions
