Skip to content

Commit

Permalink
Expand comment
Browse files Browse the repository at this point in the history
  • Loading branch information
minad committed Dec 21, 2022
1 parent 39315af commit 8b4c3c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions corfu.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
Expand Down

0 comments on commit 8b4c3c2

Please sign in to comment.