Skip to content

Commit

Permalink
Ensure that candidate is non-empty
Browse files Browse the repository at this point in the history
  • Loading branch information
minad committed Jul 6, 2021
1 parent dc41211 commit 241cb32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vertico-crm.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 241cb32

Please sign in to comment.