fix(tabs): errors on dead buffers

Fix: #8382
This commit is contained in:
Henrik Lissner
2025-05-07 11:28:55 -04:00
parent 6898a9c267
commit 31994ef136

View File

@ -25,11 +25,10 @@
:config
(defun +tabs-buffer-list ()
(seq-filter (lambda (b)
(cond ((eq (current-buffer) b) b)
((doom-temp-buffer-p b) nil)
((doom-unreal-buffer-p b) nil)
((buffer-file-name b) b)
((buffer-live-p b) b)))
(when (buffer-live-p b)
(or (eq (current-buffer) b)
(and (not (doom-temp-buffer-p b))
(not (doom-unreal-buffer-p b))))))
(if (bound-and-true-p persp-mode)
(persp-buffer-list)
(buffer-list))))