From 188420314b1f5f6ee53751369b2ed2c9fb9fd612 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 13 Feb 1994 00:15:20 +0000 Subject: [PATCH] (command_loop_1): On entry, set last_command to this_command. --- src/keyboard.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/keyboard.c b/src/keyboard.c index 48ca4b72a12..1bab767b9a6 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -898,13 +898,10 @@ command_loop_1 () waiting_for_input = 0; cancel_echoing (); - /* Don't clear out last_command at the beginning of a macro. */ - if (XTYPE (Vexecuting_macro) != Lisp_String) - last_command = Qt; - nonundocount = 0; no_redisplay = 0; this_command_key_count = 0; + last_command = this_command; /* Make sure this hook runs after commands that get errors and throw to top level. */ -- 2.39.5