lisp/gnus/eww.el (eww-tag-form): Protect against degenerate forms
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 10 Jun 2013 22:28:35 +0000 (22:28 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 10 Jun 2013 22:28:35 +0000 (22:28 +0000)
lisp/gnus/ChangeLog
lisp/gnus/eww.el

index f4d45e9..4003d3a 100644 (file)
@@ -1,5 +1,7 @@
 2013-06-10  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * eww.el (eww-tag-form): Protect against degenerate forms.
+
        * shr.el (shr-expand-url): Expand URLs that start with a slash
        correctly.
 
index 1a07224..9a7435f 100644 (file)
     (shr-ensure-paragraph)
     (shr-generic cont)
     (shr-ensure-paragraph)
-    (put-text-property start (1+ start)
-                      'eww-form eww-form)))
+    (when (> (point) start)
+      (put-text-property start (1+ start)
+                        'eww-form eww-form))))
 
 (defun eww-tag-input (cont)
   (let* ((start (point))