diff options
author | Gerd Moellmann <gerd@gnu.org> | 2000-11-28 11:38:10 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2000-11-28 11:38:10 +0000 |
commit | d02f1cb873450a41b8bbcd0bfdc3aa91b00b8b5b (patch) | |
tree | a0aef156ce0162ea70e542d71e006c430cb1eef3 /src/xdisp.c | |
parent | 8049ddc043b60afb808e8b5dc4128b341fdaff8a (diff) | |
download | emacs-d02f1cb873450a41b8bbcd0bfdc3aa91b00b8b5b.tar.gz |
(forward_to_next_line_start): Check for newlines,
not end of line, which includes CR.
Diffstat (limited to 'src/xdisp.c')
-rw-r--r-- | src/xdisp.c | 4 |
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) /* If already on a newline, just consume it to avoid unintended skipping over invisible text below. */ - if (ITERATOR_AT_END_OF_LINE_P (it)) + if (it->what == IT_CHARACTER && it->c == '\n') { set_iterator_to_next (it, 0); return 1; @@ -3431,7 +3431,7 @@ forward_to_next_line_start (it, skipped_p) && get_next_display_element (it) && !newline_found_p) { - newline_found_p = ITERATOR_AT_END_OF_LINE_P (it); + newline_found_p = it->what == IT_CHARACTER && it->c == '\n'; set_iterator_to_next (it, 0); if (!STRINGP (it->string)) ++n; |