branch: master commit 2a1ef54f05fd25e7f4c8d2a93de61e230f08c92c Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
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))))))