diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-28 13:36:51 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-28 13:36:51 -0400 |
| commit | 8e376fc615b4aced8e8e0ddd4f1e3c61eec22902 (patch) | |
| tree | 53b5c907ec6a61c01926c4da5cb1098cb2084efc /tests/test-custom-buffer-file-move-buffer-and-file.el | |
| parent | 684ffd252da0f51a79aed6674adee3f753b87912 (diff) | |
| download | dotemacs-8e376fc615b4aced8e8e0ddd4f1e3c61eec22902.tar.gz dotemacs-8e376fc615b4aced8e8e0ddd4f1e3c61eec22902.zip | |
fix(ai-term): summon restores the agent's last fullscreen state
Summoning the agent (M-SPC) into a single-window frame docked it at the default fraction even when it was last fullscreen, because the size-memory model only captured split geometry at toggle-off and a sole window has no dock size to record. A window-configuration-change-hook tracker now records whether the displayed agent fills its frame (cj/--ai-term-last-fullscreen), and display-saved restores it in place when that flag and a single-window frame both hold.
The tracker records only that flag, not dock geometry: re-capturing the dock size on every window change fed a capture/replay loop that drifted the dock height a couple rows per cycle. The restore guard uses (one-window-p t) so an active minibuffer (a picker prompt mid-summon) isn't counted as a second window, which otherwise misfired the restore into a dock and cascaded.
Diffstat (limited to 'tests/test-custom-buffer-file-move-buffer-and-file.el')
0 files changed, 0 insertions, 0 deletions
