Commit adf4f59c authored by Eli Zaretskii's avatar Eli Zaretskii

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.
parent a49884a6
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
......
......@@ -17979,9 +17979,8 @@ display_line (it)
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment