guard against vertico not loaded
This commit is contained in:
parent
1bbf31520a
commit
0a0b1d3c4e
1 changed files with 3 additions and 1 deletions
4
um.el
4
um.el
|
|
@ -282,7 +282,9 @@ Negative prefix arg is handled by `um--tag-do', which see.
|
|||
(history-delete-duplicates t)
|
||||
;; override sorting when deleting, because we sort the tags:
|
||||
(completions-sort (if insert completions-sort nil))
|
||||
(vertico-sort-function (if insert vertico-sort-function nil))
|
||||
(vertico-sort-function (if (and insert (bound-and-true-p vertico-sort-function))
|
||||
vertico-sort-function
|
||||
nil))
|
||||
(tag (completing-read prompt collection nil nil nil
|
||||
'um-tags-history)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue