From 04d6faa3146e585a3e37a801954ad25b5d7e1792 Mon Sep 17 00:00:00 2001 From: Philip Date: Tue, 1 Sep 2015 20:10:06 +0000 Subject: [PATCH] Forget cached face ids when displaying echo area messages (Bug#21394) --- src/xdisp.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 9ff9f6c..86b7ea2 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -10676,7 +10676,14 @@ display_echo_area_1 (ptrdiff_t a1, Lisp_Object a2) /* Do this before displaying, so that we have a large enough glyph matrix for the display. If we can't get enough space for the whole text, display the last N lines. That works by setting w->start. */ - bool window_height_changed_p = resize_mini_window (w, false); + bool window_height_changed_p; + + last_escape_glyph_frame = NULL; + last_escape_glyph_face_id = (1 << FACE_ID_BITS); + last_glyphless_glyph_frame = NULL; + last_glyphless_glyph_face_id = (1 << FACE_ID_BITS); + + window_height_changed_p = resize_mini_window (w, false); /* Use the starting position chosen by resize_mini_window. */ SET_TEXT_POS_FROM_MARKER (start, w->start); -- 2.5.0