branch: externals/ivy-hydra
commit 5ac1c9704099d47c46b42061afb15c0d8b4632e0
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy-dispatching-call): Fix ivy-text being "" for ivy-read-action-ivy
The use case is "C-x C-f foo C-M-o mkdir RET".
The old value of `ivy-text' was not making it to
`counsel-find-file-mkdir-action'.
Re #2514
---
ivy.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ivy.el b/ivy.el
index e71fd27..b1fce46 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1005,9 +1005,11 @@ will be called for each element of this list.")
"Select one of the available actions and call `ivy-call'."
(interactive)
(setq ivy-current-prefix-arg current-prefix-arg)
- (let ((actions (copy-sequence (ivy-state-action ivy-last))))
+ (let ((actions (copy-sequence (ivy-state-action ivy-last)))
+ (old-ivy-text ivy-text))
(unwind-protect
(when (ivy-read-action)
+ (ivy-set-text old-ivy-text)
(ivy-call))
(ivy-set-action actions)))
(ivy-shrink-after-dispatching))