summaryrefslogtreecommitdiff
path: root/helm-mode.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2016-02-04 06:30:50 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2016-02-04 06:30:50 +0100
commit9b6bb7d6849b90ed37c9399724ec4aee72262f21 (patch)
tree7a96ee2f9f165dc73c8611ca8aba73afef4e3f25 /helm-mode.el
parenta80e0b48e2ee22a022a76a5f483d1b68efe8a9e3 (diff)
Don't use the generic sort fn when fuzzy matching.
* helm-mode.el (helm--completion-in-region): Do it.
Diffstat (limited to 'helm-mode.el')
-rw-r--r--helm-mode.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/helm-mode.el b/helm-mode.el
index 62f6ee41..3edefba8 100644
--- a/helm-mode.el
+++ b/helm-mode.el
@@ -1118,8 +1118,9 @@ Can be used as value for `completion-in-region-function'."
(t (concat input init-space-suffix)))
:buffer buf-name
:fc-transformer (append (list 'helm-cr-default-transformer)
- (list (lambda (candidates _source)
- (sort candidates 'helm-generic-sort-fn))))
+ (unless helm-completion-in-region-fuzzy-match
+ (list (lambda (candidates _source)
+ (sort candidates 'helm-generic-sort-fn)))))
:exec-when-only-one t
:quit-when-no-cand
(lambda ()