* lisp/simple.el (end-of-visible-line): Handle return value of
next-single-property-change properly.
Fixes: debbugs:9371
+2012-03-22 Chong Yidong <cyd@gnu.org>
+
+ * simple.el (end-of-visible-line): Handle return value of
+ next-single-property-change properly (Bug#9371).
+
2012-03-22 Kenichi Handa <handa@m17n.org>
* international/quail.el (quail-insert-kbd-layout): Fix previous
(assq prop buffer-invisibility-spec))))))
(skip-chars-forward "^\n")
(if (get-text-property (point) 'invisible)
- (goto-char (next-single-property-change (point) 'invisible))
+ (goto-char (or (next-single-property-change (point) 'invisible)
+ (point-max)))
(goto-char (next-overlay-change (point))))
(end-of-line)))
\f