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 :config
(defun +tabs-buffer-list () (defun +tabs-buffer-list ()
(seq-filter (lambda (b) (seq-filter (lambda (b)
(cond ((eq (current-buffer) b) b) (when (buffer-live-p b)
((doom-temp-buffer-p b) nil) (or (eq (current-buffer) b)
((doom-unreal-buffer-p b) nil) (and (not (doom-temp-buffer-p b))
((buffer-file-name b) b) (not (doom-unreal-buffer-p b))))))
((buffer-live-p b) b)))
(if (bound-and-true-p persp-mode) (if (bound-and-true-p persp-mode)
(persp-buffer-list) (persp-buffer-list)
(buffer-list)))) (buffer-list))))