summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/net/eww.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index e8b8c63addb..6a5fb4bdcf0 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -1515,7 +1515,7 @@ If CHARSET is nil then use UTF-8."
'(:annotation-function (lambda (buf)
(with-current-buffer buf
(format " %s" (eww-current-url)))))))
- (switch-to-buffer
+ (pop-to-buffer-same-window
(read-buffer "Switch to EWW buffer: "
(cl-loop for buf in (nreverse (buffer-list))
if (with-current-buffer buf (derived-mode-p 'eww-mode))