branch: elpa/helm
commit f8949afd9b44de4a8149874ef40e1250826d40bd
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Fix format error when prompt-formater is not specified
---
 helm-lib.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/helm-lib.el b/helm-lib.el
index 459095933e..0584166d56 100644
--- a/helm-lib.el
+++ b/helm-lib.el
@@ -1366,14 +1366,15 @@ in LIST to be displayed in PROMPT."
                        (apply #'format
                               (concat prompt "[y,n,!,q,h]")
                               (helm-acase prompt-formater
-                                ((guard (listp it))
+                                ((guard (consp it))
                                  (mapcar (lambda (x)
                                            (if (functionp x)
                                                (funcall x elm)
                                              x))
                                          it))
                                 ((guard (functionp it))
-                                 (list (funcall it elm)))))
+                                 (list (funcall it elm)))
+                                (t (list elm))))
                        '("y" "n" "!" "q")
                        (or help-function #'helm-read-answer-default-help-fn))
             ("y" (funcall action elm))

Reply via email to