branch: externals/corfu
commit 5b2612b6d8d4caf7f0377e40eb2668b1cfbcee3d
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

    When initializing and immediately exiting with single candidate use status 
'exact
    
    Fix #93
    
    andWhen exiting with a single candidate, exit with status 'exact when
---
 corfu.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/corfu.el b/corfu.el
index f5ba9f6..29c853b 100644
--- a/corfu.el
+++ b/corfu.el
@@ -799,7 +799,7 @@ there hasn't been any input, then quit."
      ((and (not (equal str ""))
            (equal corfu--candidates (list str))
            (not (consp (completion-try-completion str table pred pt 
corfu--metadata))))
-      (corfu--done str 'finished))
+      (corfu--done str (if initializing 'exact 'finished)))
      ;; 3) There exist candidates
      ;; &  Input is non-empty or continue command
      ;; => Show candidates popup

Reply via email to