Commit 51362d68 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Allow the user more control of popping up the eww window

* eww.el (eww): Use pop-to-buffer-same-window (suggested by
Michael Heerdegen) (bug#22244).
parent ee0fbd85
......@@ -274,7 +274,7 @@ word(s) will be searched for via `eww-search-prefix'."
(setq url (concat url "/"))))
(setq url (concat eww-search-prefix
(replace-regexp-in-string " " "+" url))))))
(switch-to-buffer
(pop-to-buffer-same-window
(if (eq major-mode 'eww-mode)
(current-buffer)
(get-buffer-create "*eww*")))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment