changeset 27274:8ef20d572a68

(Fclear_this_command_keys): Clear recent_keys vector, too.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 11 Jan 2000 13:11:14 +0000
parents c0aaab70d448
children 5cb23a4c6774
files src/keyboard.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Tue Jan 11 10:26:40 2000 +0000
+++ b/src/keyboard.c	Tue Jan 11 13:11:14 2000 +0000
@@ -8962,7 +8962,14 @@
   "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;
 }