core-popups: in doom--popup-data, return nil if no window buffer
This commit is contained in:
parent
3e842a1e09
commit
3da8ea55f3
1 changed files with 4 additions and 3 deletions
|
@ -118,6 +118,7 @@ only close popups that have an :autoclose property in their rule (see
|
||||||
|
|
||||||
(defun doom--popup-data (window)
|
(defun doom--popup-data (window)
|
||||||
(let ((buffer (window-buffer window)))
|
(let ((buffer (window-buffer window)))
|
||||||
|
(when buffer
|
||||||
`(,(buffer-name buffer)
|
`(,(buffer-name buffer)
|
||||||
:file ,(buffer-file-name buffer)
|
:file ,(buffer-file-name buffer)
|
||||||
:rules ,(window-parameter window 'popup))))
|
:rules ,(window-parameter window 'popup)))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue