]> git.eshelyaron.com Git - emacs.git/commitdiff
(direct_output_for_insert): Dpn't call compute_char_face
authorRichard M. Stallman <rms@gnu.org>
Wed, 20 Jul 1994 19:35:41 +0000 (19:35 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 20 Jul 1994 19:35:41 +0000 (19:35 +0000)
for a non-X frame.

src/dispnew.c

index 0e89f037de81a516ab59839d7ffc12b225caec10..c2e27acf0d3b59b9bfba983e024d8653bfa6a785 100644 (file)
@@ -1085,9 +1085,12 @@ direct_output_for_insert (g)
     return 0;
 
   {
+    int face = 0;
 #ifdef HAVE_X_WINDOWS
     int dummy;
-    int face = compute_char_face (frame, w, point - 1, -1, -1, &dummy, point);
+
+    if (FRAME_X_P (frame))
+      face = compute_char_face (frame, w, point - 1, -1, -1, &dummy, point);
 #endif
     current_frame->glyphs[vpos][hpos] = MAKE_GLYPH (frame, g, face);
     current_frame->charstarts[vpos][hpos] = point - 1;