emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ivy-hydra ba73e45 156/395: ivy.el (ivy-read-action): Av


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra ba73e45 156/395: ivy.el (ivy-read-action): Avoid ivy-read-action-ivy overwriting ivy--directory
Date: Thu, 25 Feb 2021 08:31:52 -0500 (EST)

branch: externals/ivy-hydra
commit ba73e4586ccde0826d8e9e254aff2941aadfa730
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    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

[Prev in Thread] Current Thread [Next in Thread]