branch: master
commit 752ba81f0db3be0568072b3d9a5db458bb647a3c
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    counsel.el (counsel-switch-to-buffer-or-window): Fix
---
 counsel.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/counsel.el b/counsel.el
index b71bcab..7bdd495 100644
--- a/counsel.el
+++ b/counsel.el
@@ -3839,9 +3839,9 @@ MODE is a symbol."
 This behaves as `switch-to-buffer', except when the buffer is
 already visible; in that case, select the window corresponding to
 the buffer."
-  (let ((buffer (get-buffer buffer-or-name)))
+  (let ((buffer (get-buffer buffer-name)))
     (if (not buffer)
-        (shell buffer-or-name)
+        (shell buffer-name)
       (let (window-of-buffer-visible)
         (catch 'found
           (walk-windows (lambda (window)

Reply via email to