branch: externals/ivy-hydra
commit 4aa8073d5a2cee3fd12cb91dedb055c1858d4bb4
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy-call): Make "M-x cd" work again
Fixes #2549
---
ivy.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ivy.el b/ivy.el
index bbddc8d..2d88204 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1550,8 +1550,8 @@ See variable `ivy-recursive-restore' for further
information."
(dolist (c marked-candidates)
(let ((default-directory
(ivy-state-directory ivy-last)))
(funcall action c)))))
- (let ((default-directory (ivy-state-directory
ivy-last)))
- (funcall action x)))
+ (setq default-directory (ivy-state-directory
ivy-last))
+ (funcall action x))
(ivy-recursive-restore))
(unless (or (eq ivy-exit 'done)
(minibuffer-window-active-p (selected-window))