branch: externals/vertico
commit 971333aa20549a2d27b2c6898aa69312e5169cb3
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

    Add comment
---
 extensions/vertico-repeat.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/extensions/vertico-repeat.el b/extensions/vertico-repeat.el
index a25137c..7dd42d7 100644
--- a/extensions/vertico-repeat.el
+++ b/extensions/vertico-repeat.el
@@ -69,6 +69,8 @@
   "Save Vertico status for `vertico-repeat'."
   (when vertico--input
     (unless vertico-repeat--restore
+      ;; On Emacs 28, current-minibuffer-command is better than this-command.
+      ;; It is consistent if a command prompts multiple times.
       (setq vertico-repeat--command (if (boundp 'current-minibuffer-command)
                                         current-minibuffer-command
                                       this-command)

Reply via email to