xdisp.c (display_line): Don't assume 2nd call to
get_next_display_element cannot return zero.
+2010-04-25 Eli Zaretskii <eliz@gnu.org>
+
+ * xdisp.c (display_line): Fix crash with bidi display on the last
+ empty line. (Bug#6030)
+
2010-04-24 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
row_end = it->current;
/* If the character at max_pos+1 is a newline, skip that as
well. Note that this may skip some invisible text. */
- if (!get_next_display_element (it))
- abort ();
- if (ITERATOR_AT_END_OF_LINE_P (it))
+ if (get_next_display_element (it)
+ && ITERATOR_AT_END_OF_LINE_P (it))
{
set_iterator_to_next (it, 1);
/* Record the position after the newline of a continued