From: Gerd Moellmann Date: Fri, 9 Aug 2002 17:31:14 +0000 (+0000) Subject: (forward_to_next_line_start): Return 0 when reaching the X-Git-Tag: emacs-pretest-21.2.91~126 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fdf890b3ac879fd6f0f7fc80f1fab138a924e087;p=emacs.git (forward_to_next_line_start): Return 0 when reaching the end of the buffer. --- diff --git a/src/ChangeLog b/src/ChangeLog index 720eb51d8d4..966a0a9e443 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-08-09 Gerd Moellmann + + * xdisp.c (forward_to_next_line_start): Return 0 when reaching the + end of the buffer. + 2002-08-08 Kenichi Handa * coding.c (Ffind_operation_coding_system): For write-region, if diff --git a/src/xdisp.c b/src/xdisp.c index d0809596bde..340660f4f55 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -3826,7 +3826,7 @@ forward_to_next_line_start (it, skipped_p) n += STRINGP (it->string) ? 0 : 1) { if (!get_next_display_element (it)) - break; + return 0; newline_found_p = it->what == IT_CHARACTER && it->c == '\n'; set_iterator_to_next (it, 0); }