Commit 64fee311 authored by Chong Yidong's avatar Chong Yidong
Browse files

Fix corner case in end-of-visible-line.

* lisp/simple.el (end-of-visible-line): Handle return value of
next-single-property-change properly.

Fixes: debbugs:9371
parent 9f851fbd
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
......
......@@ -3688,7 +3688,8 @@ If ARG is zero, move to the beginning of the current line."
(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)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment