From 8de179db41598515f1db758b8d35728a3fd58f18 Mon Sep 17 00:00:00 2001 From: Thierry Volpiatto Date: Fri, 8 Mar 2019 14:10:01 +0100 Subject: [PATCH] Fix helm matching functions defeated (#2134) when a function is used as collection. * helm-mode.el (helm-comp-read): Always pass empty string to helm-comp-read-get-candidates. --- helm-mode.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/helm-mode.el b/helm-mode.el index f014d2dcf..57a278dc3 100644 --- a/helm-mode.el +++ b/helm-mode.el @@ -565,12 +565,12 @@ that use `helm-comp-read' See `helm-M-x' for example." (get-candidates (lambda () (let ((cands (helm-comp-read-get-candidates - collection test sort alistp - ;; This should not be needed as - ;; `helm-pattern' is not yet computed when - ;; calling this from :init when - ;; candidates-in-buffer is in use. - (if candidates-in-buffer "" helm-pattern)))) + ;; If `helm-pattern' is passed as INPUT + ;; and :alistp is nil INPUT is passed to + ;; `all-completions' which defeat helm + ;; matching functions (multi match, fuzzy + ;; etc...) issue #2134. + collection test sort alistp ""))) (helm-cr-default default cands)))) (history-get-candidates (lambda ()