aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-11-28 11:38:10 +0000
committerGerd Moellmann2000-11-28 11:38:10 +0000
commitd02f1cb873450a41b8bbcd0bfdc3aa91b00b8b5b (patch)
treea0aef156ce0162ea70e542d71e006c430cb1eef3 /src
parent8049ddc043b60afb808e8b5dc4128b341fdaff8a (diff)
downloademacs-d02f1cb873450a41b8bbcd0bfdc3aa91b00b8b5b.tar.gz
emacs-d02f1cb873450a41b8bbcd0bfdc3aa91b00b8b5b.zip
(forward_to_next_line_start): Check for newlines,
not end of line, which includes CR.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index ac16e694b57..15e52cde5aa 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3411,7 +3411,7 @@ forward_to_next_line_start (it, skipped_p)
3411 3411
3412 /* If already on a newline, just consume it to avoid unintended 3412 /* If already on a newline, just consume it to avoid unintended
3413 skipping over invisible text below. */ 3413 skipping over invisible text below. */
3414 if (ITERATOR_AT_END_OF_LINE_P (it)) 3414 if (it->what == IT_CHARACTER && it->c == '\n')
3415 { 3415 {
3416 set_iterator_to_next (it, 0); 3416 set_iterator_to_next (it, 0);
3417 return 1; 3417 return 1;
@@ -3431,7 +3431,7 @@ forward_to_next_line_start (it, skipped_p)
3431 && get_next_display_element (it) 3431 && get_next_display_element (it)
3432 && !newline_found_p) 3432 && !newline_found_p)
3433 { 3433 {
3434 newline_found_p = ITERATOR_AT_END_OF_LINE_P (it); 3434 newline_found_p = it->what == IT_CHARACTER && it->c == '\n';
3435 set_iterator_to_next (it, 0); 3435 set_iterator_to_next (it, 0);
3436 if (!STRINGP (it->string)) 3436 if (!STRINGP (it->string))
3437 ++n; 3437 ++n;