mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-04 22:50:59 -08:00
(direct_output_for_insert): Dpn't call compute_char_face
for a non-X frame.
This commit is contained in:
parent
821188d396
commit
19dff8dc59
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue