summaryrefslogtreecommitdiff
path: root/helm-adaptive.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-05-11 13:37:59 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-05-11 13:37:59 +0200
commit25422a6caf73c8ca3eb18e6abfd05cab1643bc12 (patch)
treef3351845d24bb48b8e6384b0908b8ab4f7d4b6cf /helm-adaptive.el
parentab8e6fa02968b0391d45c0003355a958335c0946 (diff)
Stop supporting type attr in adaptive sort.
* helm-adaptive.el (helm-adaptive-sort): Do it.
Diffstat (limited to 'helm-adaptive.el')
-rw-r--r--helm-adaptive.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/helm-adaptive.el b/helm-adaptive.el
index ef5f434f..72f46067 100644
--- a/helm-adaptive.el
+++ b/helm-adaptive.el
@@ -185,8 +185,7 @@ Returns nil if `helm-adaptive-history-file' doesn't exist."
"Sort the CANDIDATES for SOURCE by usage frequency.
This is a filtered candidate transformer you can use with the
`filtered-candidate-transformer' attribute."
- (let* ((source-name (or (assoc-default 'type source)
- (assoc-default 'name source)))
+ (let* ((source-name (assoc-default 'name source))
(source-info (assoc source-name helm-adaptive-history)))
(if source-info
(let ((usage