Fix crash with bidi display on the last empty line (bug#6030).
authorEli Zaretskii <eliz@gnu.org>
Sun, 25 Apr 2010 17:06:41 +0000 (20:06 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 25 Apr 2010 17:06:41 +0000 (20:06 +0300)
commit6bdf5d652360b79c8ee6194e8dd1b23ef4721a53
tree4c358911c21253b0980ee4cd4c7dc088b34ad896
parent7ac82b84051a250bf529a0a83e68dacac39a948d
parentf538fcec9abe33859fe4b7d84ea1d5a07d476469
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.  (Bug#6030)

Move code that bidi-iterates out of display property to a separate function.

 xdisp.c (iterate_out_of_display_property): New function, body from pop_it.
 (pop_it): Use it.
src/ChangeLog