branch: master
commit 50bb6b3cebaa7cefccfffb241d9e9125cfd9dc90
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy-call): Call the action in ivy-state-buffer
Re #810
Re #760
Re #779
Re #717
---
ivy.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ivy.el b/ivy.el
index 970e25b..17ec73e 100644
--- a/ivy.el
+++ b/ivy.el
@@ -993,7 +993,8 @@ Example use:
(if (eq action 'identity)
(funcall action x)
(select-window (ivy--get-window ivy-last))
- (prog1 (funcall action x)
+ (prog1 (with-current-buffer (ivy-state-buffer ivy-last)
+ (funcall action x))
(unless (or (eq ivy-exit 'done)
(equal (selected-window)
(active-minibuffer-window))