Check if buffer/window is live in doom-popup-p
This commit is contained in:
parent
9b0d333a66
commit
78db91bdd2
1 changed files with 4 additions and 2 deletions
|
@ -8,9 +8,11 @@
|
|||
current window if omitted."
|
||||
(when-let (target (or target (selected-window)))
|
||||
(cond ((bufferp target)
|
||||
(buffer-local-value 'doom-popup-mode target))
|
||||
(and (buffer-live-p target)
|
||||
(buffer-local-value 'doom-popup-mode target)))
|
||||
((windowp target)
|
||||
(and (window-parameter target 'popup)
|
||||
(and (window-live-p target)
|
||||
(window-parameter target 'popup)
|
||||
target)))))
|
||||
|
||||
;;;###autoload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue