From: Lars Ingebrigtsen Date: Thu, 4 Feb 2016 04:28:57 +0000 (+1100) Subject: Allow eww text fields to grow X-Git-Tag: emacs-25.0.91~100 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=56ed4e1;p=emacs.git 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. --- diff --git a/lisp/net/eww.el b/lisp/net/eww.el index af6e0afdfa7..f8d7c75aa2b 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -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)