diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-06-29 20:15:13 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-06-29 20:15:13 +0200 |
commit | 0f45a556260375256e24e842c9e997a9fcf9536e (patch) | |
tree | 134fd0b1d9d18a053d56d22398e3f2e87df2d752 /helm-imenu.el | |
parent | 0292cc7fc2ab2b984e713e183a6aa8a5c85eac8a (diff) |
Fix switching to buffers in imenu.
* helm-imenu.el (helm-imenu--maybe-switch-to-buffer):
cHecking buffer with helm-current-buffer lead to error when navigating.
Diffstat (limited to 'helm-imenu.el')
-rw-r--r-- | helm-imenu.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/helm-imenu.el b/helm-imenu.el index 295df053..6637c4a8 100644 --- a/helm-imenu.el +++ b/helm-imenu.el @@ -116,8 +116,7 @@ (defun helm-imenu--maybe-switch-to-buffer (candidate) (helm-aif (marker-buffer (cdr candidate)) - (unless (eql it (get-buffer helm-current-buffer)) - (switch-to-buffer it)))) + (switch-to-buffer it))) (defun helm-imenu-action (candidate) "Default action for `helm-source-imenu'." |