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

    Use a priority of 10
    
    This way local hooks can be installed before and after 
corfu-auto--post-command.
---
 corfu.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/corfu.el b/corfu.el
index 12b2905214..4552da7dcc 100644
--- a/corfu.el
+++ b/corfu.el
@@ -1370,7 +1370,7 @@ Quit if no candidate is selected."
    (corfu-mode
     (when corfu-auto
       (require 'corfu-auto)
-      (add-hook 'post-command-hook 'corfu-auto--post-command 1 'local))
+      (add-hook 'post-command-hook 'corfu-auto--post-command 10 '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