From 19dff8dc59da178d18cee1dbe3207be80d69866c Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 20 Jul 1994 19:35:41 +0000 Subject: [PATCH] (direct_output_for_insert): Dpn't call compute_char_face for a non-X frame. --- src/dispnew.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.5