• Eli Zaretskii's avatar
    Fix bug #9284 with line/wrap-prefix property on display strings. · 08fff70c
    Eli Zaretskii authored
     src/xdisp.c (iterate_out_of_display_property): xassert that
     IT->position is set to within IT->object's boundaries.  Break from
     the loop as soon as EOB is reached; avoids infloops in redisplay
     when IT->position is set up wrongly due to some bug.  Set
     IT->current to match the bidi iterator unconditionally.
     (push_display_prop): Allow GET_FROM_STRING as IT->method on
     entry; avoids crashes when line/wrap-prefix is set on a display
     string.  Force push_it to save on the stack the current
     buffer/string position, to be restored by pop_it.  Fix flags in
     the iterator structure wrt the object coming from a display
     property, as `line-prefix' and `wrap-prefix' are not ``replacing''
ChangeLog 259 KB