branch: externals/corfu
commit a86c73f69275ef31472c3c2e89930e8500e247f8
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    Ensure that corfu--auto-post-command is called after corfu--post-command
---
 corfu.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/corfu.el b/corfu.el
index 5ba02847ff..7e9dd1868b 100644
--- a/corfu.el
+++ b/corfu.el
@@ -923,9 +923,7 @@ the stack trace is shown in the *Messages* buffer."
    (lambda ()
      (if (corfu--continue-p)
          (corfu--exhibit)
-       (corfu-quit))
-     (when corfu-auto
-       (corfu--auto-post-command)))))
+       (corfu-quit)))))
 
 (defun corfu--goto (index)
   "Go to candidate with INDEX."
@@ -1457,7 +1455,7 @@ Quit if no candidate is selected."
   :group 'corfu :keymap corfu-mode-map
   (cond
    (corfu-mode
-    (and corfu-auto (add-hook 'post-command-hook #'corfu--auto-post-command 
nil 'local))
+    (and corfu-auto (add-hook 'post-command-hook #'corfu--auto-post-command 
100 'local))
     (setq-local completion-in-region-function #'corfu--in-region))
    (t
     (remove-hook 'post-command-hook #'corfu--auto-post-command 'local)

Reply via email to