branch: externals/ivy
commit 9d630d800e856a2c984c5a62a6f0ad313a9d2228
Author: Aaron L. Zeng <[email protected]>
Commit: Basil L. Contovounesios <[email protected]>

    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 cacb67f56b..78ca834600 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)))

Reply via email to