diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-14 00:19:44 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-14 00:19:44 -0500 |
| commit | 6a4f1a1185dd4a7d316376491ff814eea83b9cc0 (patch) | |
| tree | 908963d0240f210b7a64ba655f31f92a2085dba6 /modules/coverage-core.el | |
| parent | 9a8a2096303c702f86f5175cb332e0938dd420d0 (diff) | |
| download | dotemacs-6a4f1a1185dd4a7d316376491ff814eea83b9cc0.tar.gz dotemacs-6a4f1a1185dd4a7d316376491ff814eea83b9cc0.zip | |
fix(ai-vterm): force buffer swap after F9 toggle-off in lone window
The original fix (9600611) set a flag at toggle-off and let the next toggle-on detect it. The flag mechanism is right, but the toggle-off itself wasn't observable when bury-buffer couldn't switch the lone window onto a different buffer -- `bury-buffer' falls back to `switch-to-prev-buffer', which no-ops when the window's prev-buffer history contains only the agent itself (common right after a `C-x 1' that cleared the surrounding windows' histories). Without an observable swap, the second F9 found the agent still displayed and routed back through toggle-off, looping the user with no visible effect.
Dispatcher now explicitly forces the window onto another buffer (`(other-buffer agent-buf t)`) when the lone window is still showing the agent after `bury-buffer'. The round-trip test now exercises the real `bury-buffer' path instead of simulating it; a new test asserts the lone window's buffer is non-agent after toggle-off.
Diffstat (limited to 'modules/coverage-core.el')
0 files changed, 0 insertions, 0 deletions
