]> git.eshelyaron.com Git - emacs.git/commitdiff
(forward_to_next_line_start): Stop at end of buffer
authorGerd Moellmann <gerd@gnu.org>
Thu, 18 Jan 2001 12:29:55 +0000 (12:29 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 18 Jan 2001 12:29:55 +0000 (12:29 +0000)
when searching for a newline.

src/ChangeLog
src/xdisp.c

index cd4c4d0cf4259109c5aa037629b10d7b942e9177..f30ccf975b23794dd95a4616e551e689274b4f37 100644 (file)
@@ -1,3 +1,10 @@
+2001-01-18  Gerd Moellmann  <gerd@gnu.org>
+
+       * xterm.c (x_initialize): Set char_ins_del_ok to 1.
+
+       * xdisp.c (forward_to_next_line_start): Stop at end of buffer
+       when searching for a newline.
+
 2001-01-18  Kenichi Handa  <handa@etl.go.jp>
 
        * xdisp.c (display_string): Fix previous change.
index 6ca639bcbfa8011e8e4e193e00cab8be50fb5a80..2354eaa6209bd77296d84dd214da6fdb320f3d12 100644 (file)
@@ -3511,7 +3511,8 @@ forward_to_next_line_start (it, skipped_p)
        !newline_found_p && n < MAX_NEWLINE_DISTANCE;
        n += STRINGP (it->string) ? 0 : 1)
     {
-      get_next_display_element (it);
+      if (!get_next_display_element (it))
+       break;
       newline_found_p = it->what == IT_CHARACTER && it->c == '\n';
       set_iterator_to_next (it, 0);
     }