# HG changeset patch # User Jim Blandy # Date 737390355 0 # Node ID 071fa2f469d789bf29124b3cf30c3b3690e8cf3e # Parent 40e00789f1c1810defed3543108336429d2c1eac * dispnew.c (direct_output_for_insert): Compute the face of the character we're inserting properly. diff -r 40e00789f1c1 -r 071fa2f469d7 src/dispnew.c --- a/src/dispnew.c Fri May 14 14:37:53 1993 +0000 +++ b/src/dispnew.c Fri May 14 14:39:15 1993 +0000 @@ -875,7 +875,16 @@ || (MINI_WINDOW_P (w) && echo_area_glyphs)) return 0; - current_frame->glyphs[vpos][hpos] = g; + { +#ifdef HAVE_X_WINDOWS + int dummy; + int face = compute_char_face (frame, w, point, &dummy); +#else + int face = 0; +#endif + + current_frame->glyphs[vpos][hpos] = MAKE_GLYPH (g, face); + } unchanged_modified = MODIFF; beg_unchanged = GPT - BEG; XFASTINT (w->last_point) = point;