]> code.delx.au - gnu-emacs/commitdiff
Allow eww text fields to grow
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 4 Feb 2016 04:28:57 +0000 (15:28 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 4 Feb 2016 04:28:57 +0000 (15:28 +1100)
* lisp/net/eww.el (eww-process-text-input): Allow text fields to
grow when typing in stuff that's longer than the original width.

lisp/net/eww.el

index af6e0afdfa7c17aacda08ed88a7eab4bb6c1c43f..f8d7c75aa2bbe17d5a83845a125ed7b48cc7c4a0 100644 (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)