]> code.delx.au - gnu-emacs/commitdiff
* dispnew.c (direct_output_for_insert): Compute the face of the
authorJim Blandy <jimb@redhat.com>
Fri, 14 May 1993 14:39:15 +0000 (14:39 +0000)
committerJim Blandy <jimb@redhat.com>
Fri, 14 May 1993 14:39:15 +0000 (14:39 +0000)
character we're inserting properly.

src/dispnew.c

index 4e17a87094289ecbaf921f44047883ba5b9426df..963cc22cf44b4422ebe53ff9a2119a9407614dac 100644 (file)
@@ -875,7 +875,16 @@ direct_output_for_insert (g)
       || (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;