# HG changeset patch # User Gerd Moellmann # Date 982850165 0 # Node ID ce84015c0c4172b082747a65d94abb1bc9ea97b5 # Parent 931b5c1e2d143fb08a909835ff2fe8ac7b2455f2 (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. diff -r 931b5c1e2d14 -r ce84015c0c41 src/xdisp.c --- 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;