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

    BREAKING CHANGE: Always preselect the first candidate
    
    This changes mainly the behavior of `find-file'. Fix #302, #272, #291.
---
 vertico.el | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/vertico.el b/vertico.el
index e5499aff50..2fba619690 100644
--- a/vertico.el
+++ b/vertico.el
@@ -361,14 +361,7 @@ The function is configured by BY, BSIZE, BINDEX, BPRED and 
PRED."
       ;; Compute new index. Select the prompt under these conditions:
       ;; * If there are no candidates
       ;; * If the default is missing from the candidate list.
-      ;; * For matching content, as long as the full content
-      ;;   after the boundary is empty, including content after point.
-      (vertico--index . ,(or lock
-                             (if (or def-missing (not all)
-                                     (and (= (length vertico--base) (length 
content))
-                                          (test-completion content 
minibuffer-completion-table
-                                                           
minibuffer-completion-predicate)))
-                                 -1 0))))))
+      (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