From e6f92fdcf708fc5034f9aa29238aa042e91e45e0 Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Fri, 18 Mar 2016 13:40:28 +0100 Subject: [PATCH] ivy.el (ivy-occur-press): Add counsel-describe-function and counsel-describe-variable to the current-window work-around. Since they can switch the buffer, ensure that the occur buffer stays active, so that the calling state ("c") still allows to quickly cycle through all those buffers. --- ivy.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ivy.el b/ivy.el index 91c80764b..550e31d74 100644 --- a/ivy.el +++ b/ivy.el @@ -2881,7 +2881,8 @@ EVENT gives the mouse position." (beginning-of-line) (looking-at "\\(?:./\\| \\)\\(.*\\)$")) (when (memq (ivy-state-caller ivy-occur-last) - '(swiper counsel-git-grep counsel-grep counsel-ag)) + '(swiper counsel-git-grep counsel-grep counsel-ag + counsel-describe-function counsel-describe-variable)) (let ((window (ivy-state-window ivy-occur-last))) (when (or (null (window-live-p window)) (equal window (selected-window))) -- 2.39.2