summaryrefslogtreecommitdiff
path: root/eww-conf.el
diff options
context:
space:
mode:
Diffstat (limited to 'eww-conf.el')
-rw-r--r--eww-conf.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/eww-conf.el b/eww-conf.el
index 284f2b7..1b3f76b 100644
--- a/eww-conf.el
+++ b/eww-conf.el
@@ -491,10 +491,12 @@ Otherwise, fetch URL and afterwards try to restore the point."
(mapcar
(lambda (buffer)
(cond
- ((provided-mode-derived-p
- (buffer-local-value
- 'major-mode buffer)
- 'eww-mode)
+ ((and
+ (buffer-live-p buffer)
+ (provided-mode-derived-p
+ (buffer-local-value
+ 'major-mode buffer)
+ 'eww-mode))
buffer)))
(buffer-list))))
buffer)