branch: externals/vertico
commit 565c4f87740b6b55b0e0e3ec6015cbad42369318
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    Shorter comment
---
 vertico.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/vertico.el b/vertico.el
index 2fba619690..b4c8d8bd1f 100644
--- a/vertico.el
+++ b/vertico.el
@@ -358,10 +358,9 @@ The function is configured by BY, BSIZE, BINDEX, BPRED and 
PRED."
       (vertico--lock-candidate . ,lock)
       (vertico--groups . ,(cadr groups))
       (vertico--all-groups . ,(or (caddr groups) vertico--all-groups))
-      ;; Compute new index. Select the prompt under these conditions:
-      ;; * If there are no candidates
-      ;; * If the default is missing from the candidate list.
-      (vertico--index . ,(or lock (if (or def-missing (not all) -1 0)))))))
+      ;; Compute new index. Select the prompt if there are no candidates or if
+      ;; the default is missing from the candidate list.
+      (vertico--index . ,(or lock (if (or def-missing (not all)) -1 0))))))
 
 (defun vertico--cycle (list n)
   "Rotate LIST to position N."

Reply via email to