& (FLAG_OPPOSITE_INSIDE | FLAG_OPPOSITE_OUTSIDE))
== (FLAG_OPPOSITE_INSIDE | FLAG_OPPOSITE_OUTSIDE))
type = ((embedding_level & 1) ? STRONG_L : STRONG_R);
- else if (bpa_stack[sp].flags & FLAG_OPPOSITE_INSIDE) /* N0c2 */
+ else if (bpa_stack[sp].flags & FLAG_OPPOSITE_INSIDE) /*N0c2*/
type = ((embedding_level & 1) ? STRONG_R : STRONG_L);
/* Update and cache the closing bracket. */
&& bidi_it->charpos >= bidi_it->next_for_ws.charpos)
bidi_it->next_for_ws.type = UNKNOWN_BT;
+ /* Resete the bracket_resolved flag. */
+ bidi_it->bracket_resolved = 0;
+
/* This must be taken before we fill the iterator with the info
about the next char. If we scan backwards, the iterator
state must be already cached, so there's no need to know the