diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-13 16:47:38 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-13 16:47:38 -0500 |
| commit | 2d29a317094144b1c1e89b88dbd0bd0b0556f198 (patch) | |
| tree | 67266f4a747c9dc32602110c36a5412976cfb8db /scripts/theme-studio/app-util.js | |
| parent | c53671b06e585b5f663e0218490a855e7389d29e (diff) | |
| download | dotemacs-2d29a317094144b1c1e89b88dbd0bd0b0556f198.tar.gz dotemacs-2d29a317094144b1c1e89b88dbd0bd0b0556f198.zip | |
fix(org-capture): keep the popup frame from clamping a live terminal buffer
The capture popup frame opens showing the daemon's last buffer, and only the capture UI or the reap-on-finalize hook clears it. When a capture aborts before its UI paints (a C-g, an erroring template, a path that skips cj/quick-capture), the popup lingers on whatever was current. If that was a live eat/vterm terminal, eat sizes the terminal to the small popup window and clamps the real frame to the popup's rows.
Two guards keep the popup from ever holding a size-sensitive live buffer. One on after-make-frame-functions neutralizes the frame at creation, the root cause. One on window-buffer-change-functions catches the abort and stray-switch paths the finalize reap misses. Both repoint any non-capture-UI window to *scratch*, sparing *Org Select* and CAPTURE-* buffers so a live capture is never disturbed.
Diffstat (limited to 'scripts/theme-studio/app-util.js')
0 files changed, 0 insertions, 0 deletions
