From: Richard M. Stallman Date: Wed, 20 Jul 1994 19:35:41 +0000 (+0000) Subject: (direct_output_for_insert): Dpn't call compute_char_face X-Git-Tag: emacs-19.34~7552 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=19dff8dc59da178d18cee1dbe3207be80d69866c;p=emacs.git (direct_output_for_insert): Dpn't call compute_char_face for a non-X frame. --- diff --git a/src/dispnew.c b/src/dispnew.c index 0e89f037de8..c2e27acf0d3 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -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;