summaryrefslogtreecommitdiff
path: root/lisp/repeat.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/repeat.el')
-rw-r--r--lisp/repeat.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/repeat.el b/lisp/repeat.el
index d4888893484..795577c93fc 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))