aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2010-04-25 17:42:34 +0300
committerEli Zaretskii2010-04-25 17:42:34 +0300
commitadf4f59cc8df4d3a927e55743dea04725c3fecf0 (patch)
treec417cd9875caaa84760d9852bc7360a24dd653c6 /src
parenta49884a673bcdd1c7d7fb4c4bfd9393440436ff4 (diff)
downloademacs-adf4f59cc8df4d3a927e55743dea04725c3fecf0.tar.gz
emacs-adf4f59cc8df4d3a927e55743dea04725c3fecf0.zip
Fix crash with bidi display on the last empty line (bug#6030).
xdisp.c (display_line): Don't assume 2nd call to get_next_display_element cannot return zero.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 7561d6ebf61..8b1c81261cc 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-04-25 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (display_line): Fix crash with bidi display on the last
4 empty line. (Bug#6030)
5
12010-04-24 Eli Zaretskii <eliz@gnu.org> 62010-04-24 Eli Zaretskii <eliz@gnu.org>
2 7
3 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and 8 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
diff --git a/src/xdisp.c b/src/xdisp.c
index 5e5684a845d..3282c42f2a7 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -17979,9 +17979,8 @@ display_line (it)
17979 row_end = it->current; 17979 row_end = it->current;
17980 /* If the character at max_pos+1 is a newline, skip that as 17980 /* If the character at max_pos+1 is a newline, skip that as
17981 well. Note that this may skip some invisible text. */ 17981 well. Note that this may skip some invisible text. */
17982 if (!get_next_display_element (it)) 17982 if (get_next_display_element (it)
17983 abort (); 17983 && ITERATOR_AT_END_OF_LINE_P (it))
17984 if (ITERATOR_AT_END_OF_LINE_P (it))
17985 { 17984 {
17986 set_iterator_to_next (it, 1); 17985 set_iterator_to_next (it, 1);
17987 /* Record the position after the newline of a continued 17986 /* Record the position after the newline of a continued