From fb0dde6c6209f004134543070bd658f3286f5a3b Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Tue, 11 Jan 2000 13:11:14 +0000 Subject: [PATCH] (Fclear_this_command_keys): Clear recent_keys vector, too. --- src/keyboard.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/keyboard.c b/src/keyboard.c index 7066a56360..8b4bbe8606 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -8962,7 +8962,14 @@ DEFUN ("clear-this-command-keys", Fclear_this_command_keys, "Clear out the vector that `this-command-keys' returns.") () { + int i; + this_command_key_count = 0; + + for (i = 0; i < XVECTOR (recent_keys)->size; ++i) + XVECTOR (recent_keys)->contents[i] = Qnil; + total_keys = 0; + recent_keys_index = 0; return Qnil; } -- 2.20.1