diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-07-20 19:35:41 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-07-20 19:35:41 +0000 |
commit | f354397fffc99f5a12568b87c50bfa91f6673764 (patch) | |
tree | b4e30cbaf69ad57b52c1fb46e705dfd86db268ee /src/dispnew.c | |
parent | ba00cbe725f28870c89534ff1f48a2c1fea59ee2 (diff) | |
download | emacs-f354397fffc99f5a12568b87c50bfa91f6673764.tar.gz |
(direct_output_for_insert): Dpn't call compute_char_face
for a non-X frame.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r-- | src/dispnew.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |