Commit 054c8675 authored by Richard M. Stallman's avatar Richard M. Stallman

(command_loop_1): Properly handle nil in display table.

parent e8d9f2df
......@@ -1162,13 +1162,14 @@ command_loop_1 ()
Lisp_Object obj;
obj = DISP_CHAR_VECTOR (dp, lose);
if (NILP (obj)
|| (XTYPE (obj) == Lisp_Vector
&& XVECTOR (obj)->size == 1
&& (XTYPE (obj = XVECTOR (obj)->contents[0])
== Lisp_Int)
/* Insist face not specified in glyph. */
&& (XINT (obj) & ((-1) << 8)) == 0))
if (NILP (obj))
no_redisplay = direct_output_for_insert (lose);
else if (XTYPE (obj) == Lisp_Vector
&& XVECTOR (obj)->size == 1
&& (XTYPE (obj = XVECTOR (obj)->contents[0])
== Lisp_Int)
/* Insist face not specified in glyph. */
&& (XINT (obj) & ((-1) << 8)) == 0)
no_redisplay
= direct_output_for_insert (XINT (obj));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment