From: Gerd Moellmann Date: Sat, 3 Aug 2002 12:44:32 +0000 (+0000) Subject: (forward_to_next_line_start): Fix a condition that X-Git-Tag: ttn-vms-21-2-B4~13775 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=db0bb807eb059cc9e38ce97bb3c346f9c8007dfa;p=emacs.git (forward_to_next_line_start): Fix a condition that lead to a newline being skipped. --- diff --git a/src/ChangeLog b/src/ChangeLog index 6058e7b5e6d..9169ddc7fe4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-08-03 Gerd Moellmann + + * xdisp.c (forward_to_next_line_start): Fix a condition that + lead to a newline being skipped. + 2002-08-02 Andrew Choi * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p. diff --git a/src/xdisp.c b/src/xdisp.c index 687c0eb9440..783a1b9423f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -3876,7 +3876,7 @@ forward_to_next_line_start (it, skipped_p) /* 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);