aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 02bc7d2a0b7..928d8496cdb 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1486,11 +1486,14 @@ command_loop_1 (void)
1486 if (!CONSP (last_command_event)) 1486 if (!CONSP (last_command_event))
1487 kset_last_repeatable_command (current_kboard, Vreal_this_command); 1487 kset_last_repeatable_command (current_kboard, Vreal_this_command);
1488 1488
1489 this_command_key_count = 0; 1489 /* Don't reset this_command_key_count if we've processed
1490 this_single_command_key_start = 0; 1490 prefix-arg. */
1491 1491 if (NILP (call0 (Qinternal_echo_keystrokes_prefix)))
1492 if (current_kboard->immediate_echo 1492 {
1493 && !NILP (call0 (Qinternal_echo_keystrokes_prefix))) 1493 this_command_key_count = 0;
1494 this_single_command_key_start = 0;
1495 }
1496 else if (current_kboard->immediate_echo)
1494 { 1497 {
1495 current_kboard->immediate_echo = false; 1498 current_kboard->immediate_echo = false;
1496 /* Refresh the echo message. */ 1499 /* Refresh the echo message. */