summaryrefslogtreecommitdiff
path: root/helm-imenu.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-03-19 09:52:12 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-03-19 09:52:12 +0100
commite1878ee7ca2af47756b3c8218dd8e6f4636c2095 (patch)
tree0938af1ecd9dd9408e68acf825277464bf1a9444 /helm-imenu.el
parent1c85cbe6d2cfc3953df719007f9b051a5b8a20e7 (diff)
Don't check twice helm-sources-using-default-as-input.
* helm-imenu.el (helm-imenu-in-all-buffers): Do it.
Diffstat (limited to 'helm-imenu.el')
-rw-r--r--helm-imenu.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/helm-imenu.el b/helm-imenu.el
index 15b7bcb7..4047bd5e 100644
--- a/helm-imenu.el
+++ b/helm-imenu.el
@@ -331,9 +331,7 @@ or it have an association in `helm-imenu-all-buffer-assoc'."
'(helm-source-imenu-all))))
(helm :sources sources
:default (list (concat "\\_<" str "\\_>") str)
- :preselect (unless (memq 'helm-source-imenu-all
- helm-sources-using-default-as-input)
- str)
+ :preselect (unless helm--maybe-use-default-as-input str)
:buffer "*helm imenu all*")))
(provide 'helm-imenu)