From 9d630d800e856a2c984c5a62a6f0ad313a9d2228 Mon Sep 17 00:00:00 2001 From: "Aaron L. Zeng" Date: Mon, 10 Jul 2023 16:56:22 -0400 Subject: [PATCH] ivy.el: Fix calling convention for programmed completion functions 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. --- ivy.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivy.el b/ivy.el index cacb67f5..78ca8346 100644 --- a/ivy.el +++ b/ivy.el @@ -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)))