diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2016-02-04 06:30:50 +0100 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2016-02-04 06:30:50 +0100 |
commit | 9b6bb7d6849b90ed37c9399724ec4aee72262f21 (patch) | |
tree | 7a96ee2f9f165dc73c8611ca8aba73afef4e3f25 /helm-mode.el | |
parent | a80e0b48e2ee22a022a76a5f483d1b68efe8a9e3 (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.el | 5 |
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 () |