>From 60bde7beb317601c00d075f356a1b89877ad6104 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 4 Feb 2021 10:42:21 -0700 Subject: [PATCH] * lisp/repeat.el (repeat): Fix repeating complex commands (bug#46290) --- lisp/repeat.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lisp/repeat.el b/lisp/repeat.el index d488889348..795577c93f 100644 --- a/lisp/repeat.el +++ b/lisp/repeat.el @@ -239,9 +239,7 @@ recently executed command not bound to an input event\"." (car (memq last-command-event (listify-key-sequence repeat-on-final-keystroke)))))) - (if (memq last-repeatable-command '(exit-minibuffer - minibuffer-complete-and-exit - self-insert-and-exit)) + (if (eq last-repeatable-command (caar command-history)) (let ((repeat-command (car command-history))) (repeat-message "Repeating %S" repeat-command) (eval repeat-command)) -- 2.29.2