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

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

[elpa] master 2a1ef54 148/272: ivy-dispatching-done should not permanent


From: Oleh Krehel
Subject: [elpa] master 2a1ef54 148/272: ivy-dispatching-done should not permanently modify default action index
Date: Mon, 25 Apr 2016 10:13:22 +0000

branch: master
commit 2a1ef54f05fd25e7f4c8d2a93de61e230f08c92c
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy-dispatching-done should not permanently modify default action index
    
    * ivy.el (ivy-read):
    When (numberp (car-safe (ivy-state-action ivy-last))), reset it to 1.
    
    This was an issue for `ivy-read' calls that specified :action as a
    list (`counsel-rhythmbox' and `counsel-list-processes'), instead using a
    single function and `ivy-set-actions'.
---
 ivy.el |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/ivy.el b/ivy.el
index 2ddcbb6..5c89d7f 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1317,6 +1317,8 @@ customizations apply to the current completion session."
             (when recursive-ivy-last
               (ivy--reset-state (setq ivy-last recursive-ivy-last)))))
       (ivy-call)
+      (when (numberp (car-safe (ivy-state-action ivy-last)))
+        (setcar (ivy-state-action ivy-last) 1))
       (when (and recursive-ivy-last
                  ivy-recursive-restore)
         (ivy--reset-state (setq ivy-last recursive-ivy-last))))))



reply via email to

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