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:
parent
1655524836
commit
ca63b0bbfc
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue