From e30997d1c9f663824c02e5c3434dadce32a21a31 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Mon, 5 Jul 2021 20:37:13 +0200 Subject: [PATCH] Correct default-missing criterion --- vertico.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vertico.el b/vertico.el index e83a9f6..f063a28 100644 --- a/vertico.el +++ b/vertico.el @@ -312,7 +312,7 @@ See `resize-mini-windows' for documentation." (setq groups (vertico--group-by group-fun all) all (car groups))) (list base (length all) ;; Default value is missing from collection - (and def (= pt 0) (not (member def all))) + (and def (equal content "") (not (member def all))) ;; Find position of old candidate in the new list. (when vertico--lock-candidate (if (< vertico--index 0)