Mercurial > emacs
changeset 2778:071fa2f469d7
* dispnew.c (direct_output_for_insert): Compute the face of the
character we're inserting properly.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Fri, 14 May 1993 14:39:15 +0000 |
parents | 40e00789f1c1 |
children | 857bb0f59668 |
files | src/dispnew.c |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;