summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c2
2 files changed, 6 insertions, 1 deletions
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 <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.
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);