# HG changeset patch # User Gerd Moellmann # Date 975411490 0 # Node ID a036721cfe80db1855ebbed94ba5fc1e21ea309b # Parent 7012133c553b1eed1c1da77d0cabc9c581faa251 (forward_to_next_line_start): Check for newlines, not end of line, which includes CR. diff -r 7012133c553b -r a036721cfe80 src/xdisp.c --- a/src/xdisp.c Tue Nov 28 11:37:40 2000 +0000 +++ b/src/xdisp.c Tue Nov 28 11:38:10 2000 +0000 @@ -3411,7 +3411,7 @@ /* If already on a newline, just consume it to avoid unintended skipping over invisible text below. */ - if (ITERATOR_AT_END_OF_LINE_P (it)) + if (it->what == IT_CHARACTER && it->c == '\n') { set_iterator_to_next (it, 0); return 1; @@ -3431,7 +3431,7 @@ && get_next_display_element (it) && !newline_found_p) { - newline_found_p = ITERATOR_AT_END_OF_LINE_P (it); + newline_found_p = it->what == IT_CHARACTER && it->c == '\n'; set_iterator_to_next (it, 0); if (!STRINGP (it->string)) ++n;