[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico 9029fa596a 1/2: Accept empty input if minibuffe
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vertico 9029fa596a 1/2: Accept empty input if minibuffer-default is non-nil |
Date: |
Sat, 10 Sep 2022 15:58:13 -0400 (EDT) |
branch: externals/vertico
commit 9029fa596a0cbdb5e7ab9bab23b3b73a5c5457d4
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Accept empty input if minibuffer-default is non-nil
cc @astoff
---
vertico.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/vertico.el b/vertico.el
index 4c09b374bb..b54f6d023e 100644
--- a/vertico.el
+++ b/vertico.el
@@ -658,6 +658,7 @@ The function is configured by BY, BSIZE, BINDEX, BPRED and
PRED."
(defun vertico--match-p (input)
"Return t if INPUT is a valid match."
(or (memq minibuffer--require-match '(nil confirm-after-completion))
+ (and (equal input "") (or (car-safe minibuffer-default)
minibuffer-default))
(test-completion input minibuffer-completion-table
minibuffer-completion-predicate)
(if (eq minibuffer--require-match 'confirm)