From 241cb32c5733e0727e21c47ea5b3f8f05be52476 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Tue, 6 Jul 2021 19:21:40 +0200 Subject: [PATCH] Ensure that candidate is non-empty --- vertico-crm.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vertico-crm.el b/vertico-crm.el index 08609a5..1aff9f8 100644 --- a/vertico-crm.el +++ b/vertico-crm.el @@ -141,7 +141,7 @@ See `completing-read-multiple' for the arguments." "Select/deselect current candidate." (interactive) (let ((cand (vertico--candidate))) - (when (vertico--match-p cand) + (when (and (not (equal cand "")) (vertico--match-p cand)) (when (>= vertico--index 0) (when (> vertico--total 1) (vertico--goto (if (= (1+ vertico--index) vertico--total)