Skip to content

Commit

Permalink
Check validity of transient-display-buffer-action
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Nov 23, 2024
1 parent c93c35f commit 7e50a8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -3853,6 +3853,9 @@ have a history of their own.")
(when-let ((line (transient--separator-line)))
(insert line)))
(unless (window-live-p transient--window)
(when (eq (car transient-display-buffer-action)
'display-buffer-full-frame)
(user-error "Invalid value for `transient-display-buffer-action'"))
(setq transient--window
(display-buffer transient--buffer
transient-display-buffer-action)))
Expand Down

0 comments on commit 7e50a8f

Please sign in to comment.