Commit 47fd571b authored by Lars Magne Ingebrigtsen's avatar Lars Magne Ingebrigtsen
Browse files

(eww-bookmark-browse): Don't bug out if it's the only window.

parent a285ce99
......@@ -6,6 +6,7 @@
(eww-add-bookmark): New command.
(eww-bookmark-mode): New mode and commands.
(eww-add-bookmark): Remove newlines from the title.
(eww-bookmark-browse): Don't bug out if it's the only window.
2013-06-26 Glenn Morris <>
......@@ -1043,7 +1043,10 @@ The browser to used is specified by the `shr-external-browser' variable."
(let ((bookmark (get-text-property (line-beginning-position) 'eww-bookmark)))
(unless bookmark
(error "No bookmark on the current line"))
;; We wish to leave this window, but if it's the only window here,
;; just let it remain.
(eww (plist-get bookmark :url))))
(defun eww-next-bookmark ()
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