diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2022-12-21 23:00:50 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2022-12-21 23:00:50 +0100 |
| commit | 8b4c3c27ab49b7a5f42d880565e4c8b2d01bc025 (patch) | |
| tree | 55f51fdf797d7f994666282372248c86e996a1c5 | |
| parent | 39315af9e556288eec44ba0bcc8a76b5960358e4 (diff) | |
Expand comment
| -rw-r--r-- | corfu.el | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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)))) |
