fix(workspaces): +workspaces/kill: safeguards

This commit is contained in:
Henrik Lissner 2025-09-15 22:45:06 -04:00
parent a2f4655290
commit 251195e688
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -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))))