branch: elpa/helm
commit f8892d7ce64a13f56e210a284ed8fa741f06eb6c
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>

    Ensure to first call sort-fn from collection fn
---
 helm-mode.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/helm-mode.el b/helm-mode.el
index 6a0434b77b..323987c8af 100644
--- a/helm-mode.el
+++ b/helm-mode.el
@@ -1529,7 +1529,9 @@ This handler uses dynamic matching which allows honouring 
`completion-styles'."
                      (append (and default
                                   (memq helm-completion-style '(helm 
helm-fuzzy))
                                   (list default))
-                             all))))
+                             (if (and sort-fn (> (length str) 0))
+                                 (funcall sort-fn all)
+                               all)))))
          (data (if (memq helm-completion-style '(helm helm-fuzzy))
                    (funcall compfn (or input "") nil nil)
                  compfn))

Reply via email to