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

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

[elpa] externals/corfu 8b4c3c27ab: Expand comment


From: ELPA Syncer
Subject: [elpa] externals/corfu 8b4c3c27ab: Expand comment
Date: Wed, 21 Dec 2022 17:57:29 -0500 (EST)

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

    Expand comment
---
 corfu.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/corfu.el b/corfu.el
index 3fcee9c994..1670113173 100644
--- a/corfu.el
+++ b/corfu.el
@@ -640,8 +640,10 @@ A scroll bar is displayed from LO to LO+BAR."
       (corfu--candidates . ,all)
       (corfu--total . ,(length all))
       (corfu--highlight . ,hl)
-      ;; Select the prompt when the input is a valid completion
-      ;; and if it is not equal to the first candidate.
+      ;; Select the prompt when the input is a valid completion and if it is 
not
+      ;; equal to the first candidate. This condition prevents jumping to 
prompt
+      ;; during completion for the full candidate when the incomplete candidate
+      ;; is invalid.
       (corfu--preselect . ,(if (or (not corfu-preselect-first) (not all)
                                    (and (not (equal field (car all)))
                                         (not (and completing-file (equal 
(concat field "/") (car all))))



reply via email to

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