Fix workspace cleaning up visible popups

On :cleanup or doom/cleanup-session
This commit is contained in:
Henrik Lissner 2018-06-30 23:16:48 +02:00
parent 64d4cf773d
commit eebe852de4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -501,7 +501,8 @@ created."
"Kill leftover buffers that are unassociated with any perspective."
(when persp-mode
(cl-loop for buf in (buffer-list)
unless (persp--buffer-in-persps buf)
unless (or (persp--buffer-in-persps buf)
(get-buffer-window buf))
if (kill-buffer buf)
sum 1)))