Mercurial > emacs
changeset 48630:edd0dd275f1f
(Fcall_interactively): Use next_event only if less
than key_count.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Mon, 02 Dec 2002 23:30:54 +0000 |
parents | cf1e5fbb7a61 |
children | 37ddf84a7528 |
files | src/callint.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/callint.c Mon Dec 02 22:31:01 2002 +0000 +++ b/src/callint.c Mon Dec 02 23:30:54 2002 +0000 @@ -409,7 +409,9 @@ { 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))