]> git.eshelyaron.com Git - emacs.git/commitdiff
eww textarea input fixup
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 19 Jul 2013 14:44:16 +0000 (16:44 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 19 Jul 2013 14:44:16 +0000 (16:44 +0200)
* net/eww.el (eww-process-text-input): Allow inputting when the
point is at the start of the line, as the properties aren't
front-sticky.

lisp/ChangeLog
lisp/net/eww.el

index d583d7f90630679a06045c3522e715ae76ce6b18..5ab2e41f2e46d5e861bbc1d398933898cccedd78 100644 (file)
@@ -1,5 +1,9 @@
 2013-07-19  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * net/eww.el (eww-process-text-input): Allow inputting when the
+       point is at the start of the line, as the properties aren't
+       front-sticky.
+
        * net/shr.el (shr-make-table-1): Ensure that we don't infloop on
        degenerate widths.
 
index d832aa7ef3e0f8ea3e0c76e2bf4b1b6d3b5d70ba..d65932ae7c9134612670578170a6ad81cab80291 100644 (file)
@@ -603,7 +603,7 @@ appears in a <link> or <a> tag."
     (insert " ")))
 
 (defun eww-process-text-input (beg end length)
-  (let* ((form (get-text-property end 'eww-form))
+  (let* ((form (get-text-property (min (1+ end) (point-max)) 'eww-form))
         (properties (text-properties-at end))
         (type (plist-get form :type)))
     (when (and form