# HG changeset patch # User Gerd Moellmann # Date 1028378658 0 # Node ID e22c0d1c4c971a334042a71d3cec64f6981dac8f # Parent c217aa0214e24dfa677da242b9ba6e533e800387 (forward_to_next_line_start): Fix a condition that lead to a newline being skipped. diff -r c217aa0214e2 -r e22c0d1c4c97 src/xdisp.c --- a/src/xdisp.c Sat Aug 03 09:23:25 2002 +0000 +++ b/src/xdisp.c Sat Aug 03 12:44:18 2002 +0000 @@ -3876,7 +3876,7 @@ /* If we didn't find a newline near enough, see if we can use a short-cut. */ - if (n == MAX_NEWLINE_DISTANCE) + if (!newline_found_p) { int start = IT_CHARPOS (*it); int limit = find_next_newline_no_quit (start, 1);