emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vertico 25f1ed1: Fix oddity for empty candidate strings


From: ELPA Syncer
Subject: [elpa] externals/vertico 25f1ed1: Fix oddity for empty candidate strings (See #134)
Date: Fri, 24 Sep 2021 12:57:25 -0400 (EDT)

branch: externals/vertico
commit 25f1ed19676829d146141afd0ad42ee4efdb3b42
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Fix oddity for empty candidate strings (See #134)
    
    (completing-read "Test: " '("" "x") nil t nil nil "t")
    (completing-read "Test: " '("" "x" "t") nil t nil nil "t")
    (completing-read "Test: " '("" "x") nil t)
---
 vertico.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vertico.el b/vertico.el
index 4fe876e..911fc22 100644
--- a/vertico.el
+++ b/vertico.el
@@ -434,7 +434,7 @@ The function is configured by BY, BSIZE, BINDEX, BPRED and 
PRED."
              vertico--index
              (if (or vertico--default-missing
                      (= 0 vertico--total)
-                     (and (= (car bounds) (length content))
+                     (and (> (car bounds) 0) (= (car bounds) (length content))
                           (test-completion content minibuffer-completion-table
                                            minibuffer-completion-predicate)))
                  -1 0))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]