emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/corfu 5b2612b: When initializing and immediately exitin


From: ELPA Syncer
Subject: [elpa] externals/corfu 5b2612b: When initializing and immediately exiting with single candidate use status 'exact
Date: Fri, 3 Dec 2021 18:57:15 -0500 (EST)

branch: externals/corfu
commit 5b2612b6d8d4caf7f0377e40eb2668b1cfbcee3d
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@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

[Prev in Thread] Current Thread [Next in Thread]