mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08: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
2 changed files with 7 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue