mirror of
https://github.com/doomemacs/doomemacs.git
synced 2026-04-21 04:11:05 -07:00
fix(workspaces): +workspaces/kill: safeguards
This commit is contained in:
parent
a2f4655290
commit
251195e688
1 changed files with 2 additions and 1 deletions
|
|
@ -74,7 +74,8 @@
|
|||
(other-buffers (+workspaces-other-buffer-list)))
|
||||
(unwind-protect
|
||||
(cl-loop for b in tab-buffers
|
||||
unless (memq b other-buffers) ; only kill if not open elsewhere
|
||||
unless (member b other-buffers) ; only kill if not open elsewhere
|
||||
when (buffer-live-p b)
|
||||
do (kill-buffer b))
|
||||
(tab-bar-close-tab))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue