Mercurial > emacs
changeset 36290:ce84015c0c41
(forward_to_next_line_start): When taking the shortcut
at the start of the function, check that the \n in it->c is
from the iterator's current position.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 22 Feb 2001 13:56:05 +0000 |
parents | 931b5c1e2d14 |
children | d128130f1ce4 |
files | src/xdisp.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Thu Feb 22 13:33:05 2001 +0000 +++ b/src/xdisp.c Thu Feb 22 13:56:05 2001 +0000 @@ -3517,7 +3517,9 @@ /* If already on a newline, just consume it to avoid unintended skipping over invisible text below. */ - if (it->what == IT_CHARACTER && it->c == '\n') + if (it->what == IT_CHARACTER + && it->c == '\n' + && CHARPOS (it->position) == IT_CHARPOS (*it)) { set_iterator_to_next (it, 0); it->c = 0;