Commit b0481eb9 authored by Lars Magne Ingebrigtsen's avatar Lars Magne Ingebrigtsen
Browse files

eww point positioning tweak

(eww-display-html): Don't leave point inside forms.
parent 1ca31e8c
2014-11-03 Lars Magne Ingebrigtsen <>
* net/eww.el (eww-score-readability): Parse SVC images correctly.
(eww-display-html): Don't leave point inside forms.
* net/shr.el: Ditto.
......@@ -300,7 +300,12 @@ word(s) will be searched for via `eww-search-prefix'."
(when point
(goto-char point))))
(goto-char (point-min)))))
(goto-char (point-min))
;; Don't leave point inside forms, because the normal eww
;; commands aren't available there.
(while (and (not (eobp))
(get-text-property (point) 'eww-form))
(forward-line 1)))))
(setq eww-current-url url
eww-history-position 0)
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