From ffd808257c052955b35afa7c31f74ebded692b29 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Tue, 19 Apr 2005 12:52:02 +0000 Subject: [PATCH] (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. --- src/xdisp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.39.2