From: Kim F. Storm Date: Tue, 19 Apr 2005 12:52:02 +0000 (+0000) Subject: (setup_for_ellipsis): Reset saved_face_id to use default X-Git-Tag: ttn-vms-21-2-B4~892 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ffd808257c052955b35afa7c31f74ebded692b29;p=emacs.git (setup_for_ellipsis): Reset saved_face_id to use default face unless last visible char and first invisible char have the same face. Also use default face if saved_face_id is undefined. --- diff --git a/src/xdisp.c b/src/xdisp.c index b7b27515cd3..ccce95b9d10 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -3386,11 +3386,11 @@ setup_for_ellipsis (it, len) it->current.dpvec_index = 0; it->dpvec_face_id = -1; -#if 0 /* Already saved in handle_stop */ /* Remember the current face id in case glyphs specify faces. - IT's face is restored in set_iterator_to_next. */ - it->saved_face_id = it->face_id; -#endif + IT's face is restored in set_iterator_to_next. + saved_face_id was set to preceding char's face in handle_stop. */ + if (it->saved_face_id < 0 || it->saved_face_id != it->face_id) + it->saved_face_id = it->face_id = DEFAULT_FACE_ID; it->method = GET_FROM_DISPLAY_VECTOR; it->ellipsis_p = 1;