Allow eww text fields to grow

* lisp/net/eww.el (eww-process-text-input): Allow text fields to
grow when typing in stuff that's longer than the original width.
This commit is contained in:
Lars Ingebrigtsen 2016-02-04 15:28:57 +11:00
parent 66b315c9c9
commit 56ed4e1886

View file

@ -1046,7 +1046,7 @@ See URL `https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input'.")
(1- (line-end-position))
(eww-end-of-field)))
(while (and (> length 0)
(eql (following-char) ? ))
(eql (char-after (1- (point))) ? ))
(delete-region (1- (point)) (point))
(cl-decf length))))
((< length 0)