]> git.eshelyaron.com Git - emacs.git/commitdiff
(forward_to_next_line_start): Return 0 when reaching the
authorGerd Moellmann <gerd@gnu.org>
Fri, 9 Aug 2002 17:31:14 +0000 (17:31 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 9 Aug 2002 17:31:14 +0000 (17:31 +0000)
end of the buffer.

src/ChangeLog
src/xdisp.c

index 720eb51d8d462a368d820b795c4b22ee56b558f7..966a0a9e4431575994f4b51464be855e04f3dde9 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-09  Gerd Moellmann  <gerd.moellmann@t-online.de>
+
+       * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
+       end of the buffer.
+
 2002-08-08  Kenichi Handa  <handa@etl.go.jp>
 
        * coding.c (Ffind_operation_coding_system): For write-region, if
index d0809596bdebc6ce232ce839e763ae450286dd5d..340660f4f55320fb5d31ebc1b9aec3d2c0a3e05a 100644 (file)
@@ -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);
     }