aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-01-18 12:29:55 +0000
committerGerd Moellmann2001-01-18 12:29:55 +0000
commit8692ca9275b6425dcbc9145bf556381ba2f8567e (patch)
treeb7d878f68e38889a71f148c809725c430c463169
parent9299cb15209728712e23eeddf6c7b158a48e2606 (diff)
downloademacs-8692ca9275b6425dcbc9145bf556381ba2f8567e.tar.gz
emacs-8692ca9275b6425dcbc9145bf556381ba2f8567e.zip
(forward_to_next_line_start): Stop at end of buffer
when searching for a newline.
-rw-r--r--src/ChangeLog7
-rw-r--r--src/xdisp.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index cd4c4d0cf42..f30ccf975b2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12001-01-18 Gerd Moellmann <gerd@gnu.org>
2
3 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
4
5 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
6 when searching for a newline.
7
12001-01-18 Kenichi Handa <handa@etl.go.jp> 82001-01-18 Kenichi Handa <handa@etl.go.jp>
2 9
3 * xdisp.c (display_string): Fix previous change. 10 * xdisp.c (display_string): Fix previous change.
diff --git a/src/xdisp.c b/src/xdisp.c
index 6ca639bcbfa..2354eaa6209 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3511,7 +3511,8 @@ forward_to_next_line_start (it, skipped_p)
3511 !newline_found_p && n < MAX_NEWLINE_DISTANCE; 3511 !newline_found_p && n < MAX_NEWLINE_DISTANCE;
3512 n += STRINGP (it->string) ? 0 : 1) 3512 n += STRINGP (it->string) ? 0 : 1)
3513 { 3513 {
3514 get_next_display_element (it); 3514 if (!get_next_display_element (it))
3515 break;
3515 newline_found_p = it->what == IT_CHARACTER && it->c == '\n'; 3516 newline_found_p = it->what == IT_CHARACTER && it->c == '\n';
3516 set_iterator_to_next (it, 0); 3517 set_iterator_to_next (it, 0);
3517 } 3518 }