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

    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