From d43be70c875947ee04e5f2dde8cc9192ee4219a9 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Fri, 9 Aug 2002 17:29:34 +0000 Subject: [PATCH] (forward_to_next_line_start): Return 0 when reaching the end of the buffer. --- src/ChangeLog | 5 +++++ src/xdisp.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index c48fcfa3b10..400d567fb3e 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 Ken Raeburn * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int diff --git a/src/xdisp.c b/src/xdisp.c index 783a1b9423f..ba7bfad414c 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -3869,7 +3869,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); } -- 2.39.5