* net/eww.el (eww): Start of strings is \\`, not ^.

This commit is contained in:
Lars Magne Ingebrigtsen 2013-06-24 19:42:22 +02:00
parent 5196f88a95
commit be549ce6f9
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2013-06-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/eww.el (eww): Start of strings is \\`, not ^.
2013-06-24 Ivan Kanis <ivan@kanis.fr>
* net/shr.el (shr-browse-url): Fix interactive spec.

View file

@ -108,7 +108,7 @@ word(s) will be searched for via `eww-search-prefix'."
;; some site don't redirect final /
(when (string= (url-filename (url-generic-parse-url url)) "")
(setq url (concat url "/"))))
(unless (string-match-p "^file:" url)
(unless (string-match-p "\\'file:" url)
(setq url (concat eww-search-prefix
(replace-regexp-in-string " " "+" url)))))
(url-retrieve url 'eww-render (list url)))