]> git.eshelyaron.com Git - emacs.git/commitdiff
(eww-follow-link): Record the location properly when following #links
authorXu Chunyang <mail@xuchunyang.me>
Sun, 12 May 2019 20:35:49 +0000 (16:35 -0400)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 12 May 2019 20:35:49 +0000 (16:35 -0400)
* lisp/net/eww.el (eww-follow-link): Record the location properly
when following #links (bug#35445).

lisp/net/eww.el

index 3e9334532c66f660191e7d59b5e34239f35d4451..d9ac3e1ff5cc2ba78932c6faf344612608f8f4cc 100644 (file)
@@ -1519,6 +1519,7 @@ If EXTERNAL is double prefix, browse in new buffer."
           (eww-same-page-p url (plist-get eww-data :url)))
       (let ((dom (plist-get eww-data :dom)))
        (eww-save-history)
+       (plist-put eww-data :url url)
        (eww-display-html 'utf-8 url dom nil (current-buffer))))
      (t
       (eww-browse-url url external)))))