aboutsummaryrefslogtreecommitdiff
path: root/perspective.el
diff options
context:
space:
mode:
authorYikai Zhao <yikai@z1k.dev>2025-02-12 09:54:27 +0800
committerYikai Zhao <yikai@z1k.dev>2025-02-12 09:54:27 +0800
commit3ebadf52cf749f8eb2d6bf5e556b9d1ab30c21b4 (patch)
tree1909952f40fc7912591ab70215cd16b6472ab0c2 /perspective.el
parent50904a7a19768dfd02e19a1669ecf5bc9be1a155 (diff)
check buffer-live-p
Diffstat (limited to 'perspective.el')
-rw-r--r--perspective.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/perspective.el b/perspective.el
index 7265f18..be4b5de 100644
--- a/perspective.el
+++ b/perspective.el
@@ -664,7 +664,7 @@ Returns BUFFERS with all non-living buffers removed.
See also `other-buffer'."
(cl-loop for buf in (reverse (buffer-list))
- when (member buf buffers)
+ when (and (buffer-live-p buf) (member buf buffers))
collect buf into result-buffers
and do (switch-to-buffer buf)
finally return result-buffers))