mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-03 08:30:09 +00:00
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
This commit is contained in:
parent
9f851fbd28
commit
64fee3118a
@ -1,3 +1,8 @@
|
||||
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)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user