mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
ui/popup: respect :select nil when reusing a window
- before this change: when reusing a window, select option would get ignored - after this change: when reusing a window, select option would be used just as a new popup
This commit is contained in:
@ -189,7 +189,10 @@ and enables `+popup-buffer-mode'."
|
||||
(window (display-buffer-reuse-window buffer alist)))
|
||||
(when window
|
||||
(unless +popup--inhibit-select
|
||||
(select-window window))
|
||||
(let ((select (+popup-parameter 'select window)))
|
||||
(if (functionp select)
|
||||
(funcall select window origin)
|
||||
(select-window (if select window origin)))))
|
||||
window))
|
||||
(when-let (popup (cl-loop for func in actions
|
||||
if (funcall func buffer alist)
|
||||
|
Reference in New Issue
Block a user