[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico 565faea4b7 1/3: BREAKING CHANGE: Always presele
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vertico 565faea4b7 1/3: BREAKING CHANGE: Always preselect the first candidate |
Date: |
Sat, 17 Dec 2022 07:58:16 -0500 (EST) |
branch: externals/vertico
commit 565faea4b76860e68e7d92ca7d3295a146c3dce4
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
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."