mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
Fix workspace cleaning up visible popups
On :cleanup or doom/cleanup-session
This commit is contained in:
@ -501,7 +501,8 @@ created."
|
|||||||
"Kill leftover buffers that are unassociated with any perspective."
|
"Kill leftover buffers that are unassociated with any perspective."
|
||||||
(when persp-mode
|
(when persp-mode
|
||||||
(cl-loop for buf in (buffer-list)
|
(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)
|
if (kill-buffer buf)
|
||||||
sum 1)))
|
sum 1)))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user