Skip to content

Commit

Permalink
ivy.el: Fix calling convention for programmed completion functions
Browse files Browse the repository at this point in the history
ivy--dynamic-collection-cands wants a list, not a single string.  The
third argument to the collection should be t in that case.

Copyright-paperwork-exempt: yes

Closes #3020.
  • Loading branch information
bcc32 authored and basil-conto committed Jul 14, 2023
1 parent aa18c1f commit 9d630d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy.el
Original file line number Diff line number Diff line change
Expand Up @@ -3386,7 +3386,7 @@ Should be run via minibuffer `post-command-hook'."
(let ((coll (condition-case nil
(funcall (ivy-state-collection ivy-last) input)
(error
(funcall (ivy-state-collection ivy-last) input nil nil)))))
(funcall (ivy-state-collection ivy-last) input nil t)))))
(if (listp coll)
(mapcar (lambda (x) (if (consp x) (car x) x)) coll)
coll)))
Expand Down

0 comments on commit 9d630d8

Please sign in to comment.