branch: elpa/helm
commit bb9f092ad685ad5a510aea14c6b2967f9943afd8
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Maybe switch to buffer in tab with imenu
---
 helm-imenu.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helm-imenu.el b/helm-imenu.el
index 0ff45bbdf4..f610a39171 100644
--- a/helm-imenu.el
+++ b/helm-imenu.el
@@ -305,7 +305,7 @@ The sexp should be an `all-the-icons' function with its 
args."
 (defun helm-imenu--maybe-switch-to-buffer (candidate)
   (let ((cand (cdr candidate)))
     (helm-aif (and (markerp cand) (marker-buffer cand))
-        (switch-to-buffer it))))
+        (helm-buffers-switch-to-buffer-or-tab it))))
 
 (defun helm-imenu--execute-action-at-once-p ()
   (let ((cur (helm-get-selection))

Reply via email to