Skip to content

Commit

Permalink
transient--delete-window: Ensure buffer is always killed
Browse files Browse the repository at this point in the history
The transient window is expected to be alive when this function is
called, so this shouldn't make a difference, but it also does not
hurt to be a bit defensive.
  • Loading branch information
tarsius committed Dec 18, 2024
1 parent fd9811e commit 88031d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -2495,11 +2495,11 @@ value. Otherwise return CHILDREN as is.")
(if (window-parent win)
(delete-window win)
(delete-frame (window-frame win) t)))))
(when (buffer-live-p transient--buffer)
(kill-buffer transient--buffer))
(setq transient--buffer nil)
(when remain-in-minibuffer-window
(select-window remain-in-minibuffer-window)))))
(select-window remain-in-minibuffer-window))))
(when (buffer-live-p transient--buffer)
(kill-buffer transient--buffer))
(setq transient--buffer nil))

(defun transient--export ()
(setq transient-current-prefix transient--prefix)
Expand Down

0 comments on commit 88031d6

Please sign in to comment.