Commit 8692ca92 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(forward_to_next_line_start): Stop at end of buffer

when searching for a newline.
parent 9299cb15
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.
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment