doom-popup-p: don't require window for buffer target
This commit is contained in:
parent
e5f3f6d844
commit
7b5d2063f8
1 changed files with 1 additions and 2 deletions
|
@ -6,8 +6,7 @@
|
||||||
current window if omitted."
|
current window if omitted."
|
||||||
(when-let (target (or target (selected-window)))
|
(when-let (target (or target (selected-window)))
|
||||||
(cond ((bufferp target)
|
(cond ((bufferp target)
|
||||||
(and (buffer-local-value 'doom-popup-mode target)
|
(buffer-local-value 'doom-popup-mode target))
|
||||||
(get-buffer-window target)))
|
|
||||||
((windowp target)
|
((windowp target)
|
||||||
(and (window-parameter target 'popup)
|
(and (window-parameter target 'popup)
|
||||||
target)))))
|
target)))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue