Skip to content

Commit

Permalink
RET: Ignore current candidate if candidates are already selected
Browse files Browse the repository at this point in the history
  • Loading branch information
minad committed Jul 6, 2021
1 parent 1956118 commit 12bf9c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vertico-crm.el
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ See `completing-read-multiple' for the arguments."
"" ;; default
inherit-input-method)))
(setq selected (mapcar #'substring-no-properties selected))
(unless (or (equal result "") (member result selected))
(setq selected (nconc selected (list result))))
(unless (or (equal result "") selected)
(setq selected (list result)))
(set hist-sym (append selected hist-val))
(when (consp def)
(setq def (car def)))
Expand Down

0 comments on commit 12bf9c4

Please sign in to comment.