mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
doom-popup-p: don't require window for buffer target
This commit is contained in:
@ -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)))))
|
||||||
|
Reference in New Issue
Block a user