it->current.dpvec_index = 0;
it->dpvec_face_id = -1;
- /* Remember the current face id in case glyphs specify faces.
- IT's face is restored in set_iterator_to_next.
- saved_face_id was set to preceding char's face in handle_stop. */
+ /* Reset the current face ID to default if the last visible
+ character and the first invisible character have different faces.
+ IT->saved_face_id was set in handle_stop to the face of the
+ preceding character, and will be different from IT->face_id only
+ if the invisible text skipped in handle_invisible_prop has some
+ non-default face. IT's face is restored in set_iterator_to_next. */
if (it->saved_face_id < 0 || it->saved_face_id != it->face_id)
it->saved_face_id = it->face_id = DEFAULT_FACE_ID;