summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2022-12-21 23:00:50 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2022-12-21 23:00:50 +0100
commit8b4c3c27ab49b7a5f42d880565e4c8b2d01bc025 (patch)
tree55f51fdf797d7f994666282372248c86e996a1c5
parent39315af9e556288eec44ba0bcc8a76b5960358e4 (diff)
Expand comment
-rw-r--r--corfu.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/corfu.el b/corfu.el
index 3fcee9c..1670113 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))))