From d7437ef689c1c1dcec0fbe99d36a11f84b5850ab Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 10 Sep 1995 01:23:14 +0000 Subject: [PATCH] (command_loop_1): Set this_command to nil before reading a command. --- src/keyboard.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/keyboard.c b/src/keyboard.c index ef50a2b81fb..018b8201959 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -1168,6 +1168,8 @@ command_loop_1 () before_command_key_count = this_command_key_count; before_command_echo_length = echo_length (); + this_command = Qnil; + /* Read next key sequence; i gets its length. */ i = read_key_sequence (keybuf, sizeof keybuf / sizeof keybuf[0], Qnil, 0, 1); -- 2.39.2