changeset 46849:386796147f24

(forward_to_next_line_start): Return 0 when reaching the end of the buffer.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 09 Aug 2002 17:29:11 +0000
parents 0d65796a3488
children 8b656e164dea
files src/xdisp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Fri Aug 09 16:41:01 2002 +0000
+++ b/src/xdisp.c	Fri Aug 09 17:29:11 2002 +0000
@@ -3869,7 +3869,7 @@
        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);
     }