branch: master
commit 61cdcd59c4c99ab24db9ab3aea434b631fb4b1aa
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    ivy.el (ivy-occur-press-and-switch): Use ivy-occur-last
---
 ivy.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index 3c9d551..2f966e5 100644
--- a/ivy.el
+++ b/ivy.el
@@ -3412,7 +3412,7 @@ EVENT gives the mouse position."
 (defun ivy-occur-press-and-switch ()
   (interactive)
   (ivy-occur-press)
-  (select-window (ivy--get-window ivy-last)))
+  (select-window (ivy--get-window ivy-occur-last)))
 
 (defvar ivy-help-file (let ((default-directory
                              (if load-file-name

Reply via email to