]> git.eshelyaron.com Git - emacs.git/commitdiff
(forward_to_next_line_start): Fix a condition that
authorGerd Moellmann <gerd@gnu.org>
Sat, 3 Aug 2002 12:44:32 +0000 (12:44 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sat, 3 Aug 2002 12:44:32 +0000 (12:44 +0000)
lead to a newline being skipped.

src/ChangeLog
src/xdisp.c

index 6058e7b5e6d22c9e7994b3551ecd76a3dc4545ad..9169ddc7fe447d453e5d4aa94086952b6c4669a1 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-03  Gerd Moellmann  <gerd.moellmann@t-online.de>
+
+       * xdisp.c (forward_to_next_line_start): Fix a condition that
+       lead to a newline being skipped.
+
 2002-08-02  Andrew Choi  <akochoi@shaw.ca>
 
        * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
index 687c0eb94406476749a746590b7e352e0a08a723..783a1b9423f616dcce053b4e6de3343be7c38939 100644 (file)
@@ -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);