Commit 170d3006 authored by Andreas Schwab's avatar Andreas Schwab

(Fcall_interactively): Use next_event only if less

than key_count.
parent a8fd50ef
......@@ -409,7 +409,9 @@ supply if the command inquires which events were used to invoke it. */)
{
Lisp_Object event;
event = XVECTOR (keys)->contents[next_event];
event = (next_event < key_count
? XVECTOR (keys)->contents[next_event]
: Qnil);
if (EVENT_HAS_PARAMETERS (event)
&& (event = XCDR (event), CONSP (event))
&& (event = XCAR (event), CONSP (event))
......
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