* lisp/net/eww.el (eww-switch-to-buffer): Use pop-to-buffer-same-window instead.

This commit is contained in:
Mark Oteiza
2016-02-04 12:48:35 -05:00
parent 0815944ac4
commit 7a7164ea3e

View File

@@ -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))