branch: externals/ivy-hydra
commit ba73e4586ccde0826d8e9e254aff2941aadfa730
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    ivy.el (ivy-read-action): Avoid ivy-read-action-ivy overwriting 
ivy--directory
    
    Fixes #2464
---
 ivy.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index 27cf645..3fc05d7 100644
--- a/ivy.el
+++ b/ivy.el
@@ -935,7 +935,8 @@ selection, non-nil otherwise."
   (let ((actions (ivy-state-action ivy-last)))
     (if (not (ivy--actionp actions))
         t
-      (funcall ivy-read-action-function actions))))
+      (let ((ivy--directory ivy--directory))
+        (funcall ivy-read-action-function actions)))))
 
 (defun ivy-read-action-by-key (actions)
   (let* ((hint (funcall ivy-read-action-format-function (cdr actions)))

Reply via email to