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

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

[elpa] externals/corfu d708e27871: Improve quitting behavior for auto co


From: ELPA Syncer
Subject: [elpa] externals/corfu d708e27871: Improve quitting behavior for auto completion (Fix #108)
Date: Mon, 24 Jan 2022 06:57:22 -0500 (EST)

branch: externals/corfu
commit d708e278712bb9f776cf9a031e5a6df21adc5dfa
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Improve quitting behavior for auto completion (Fix #108)
---
 corfu.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/corfu.el b/corfu.el
index 805cbd023e..123e89de69 100644
--- a/corfu.el
+++ b/corfu.el
@@ -796,14 +796,15 @@ there hasn't been any input, then quit."
             nil)
         (error (corfu-quit)
                (message "Corfu completion error: %s" (error-message-string 
err)))))
-     ;; 1) Initializing, no candidates => Quit
+     ;; 1) Initializing, no candidates => Quit (happens during auto 
completion!)
      ((and initializing (not corfu--candidates))
       (corfu-quit))
      ;; 2) Single matching candidate and no further completion is possible
      ((and (not (equal str ""))
            (equal corfu--candidates (list str))
            (not (consp (completion-try-completion str table pred pt 
corfu--metadata))))
-      (corfu--done str (if initializing 'exact 'finished)))
+      ;; Quit directly, happens during auto completion!
+      (if initializing (corfu-quit) (corfu--done str '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]