diff --git a/src/xterm.c b/src/xterm.c index e471311da5a7a8f83925d1cae761a528aecdb8f3..cc7f9aa70896c5e75565164eec6c8e453a44dd23 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -524,11 +524,11 @@ dumpglyphs (f, left, top, gp, n, hl) /* First look at the face of the text itself. */ if (cf != 0) { - /* The face codes on the glyphs must be valid indices into the - frame's face table. */ + /* It's possible for the display table to specify + a face code that is out of range. Use 0 in that case. */ if (cf < 0 || cf >= FRAME_N_COMPUTED_FACES (f) || FRAME_COMPUTED_FACES (f) [cf] == 0) - abort (); + cf = 0; if (cf == 1) face = FRAME_MODE_LINE_FACE (f);