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

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

[elpa] externals/ivy-hydra 5ac1c97 190/395: ivy.el (ivy-dispatching-call


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 5ac1c97 190/395: ivy.el (ivy-dispatching-call): Fix ivy-text being "" for ivy-read-action-ivy
Date: Thu, 25 Feb 2021 08:32:00 -0500 (EST)

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

    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))



reply via email to

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