branch: externals/corfu commit 8b4c3c27ab49b7a5f42d880565e4c8b2d01bc025 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@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))))