branch: master commit e6171e212de15a9ea32f6bcdbe5f2d42bcfae1f8 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
ivy-hydra.el (ivy-dispatching-done-hydra): Fix for ivy-resume Modify the action list non-destructively, by just chaning the initial index. This way, when `ivy-resume' is called, the action list has the same functions. Fixes #2195 --- ivy-hydra.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ivy-hydra.el b/ivy-hydra.el index 1d586ee..3783d67 100644 --- a/ivy-hydra.el +++ b/ivy-hydra.el @@ -108,7 +108,8 @@ _h_ ^+^ _l_ | _d_one ^ ^ | _o_ops | _M_: matcher %-5s(ivy--matcher-desc) (estimated-len (length doc)) (n-columns (if (> estimated-len (window-width)) ivy-dispatching-done-columns - nil))) + nil)) + (i 0)) (if (null (ivy--actionp actions)) (ivy-done) (funcall @@ -118,7 +119,7 @@ _h_ ^+^ _l_ | _d_one ^ ^ | _o_ops | _M_: matcher %-5s(ivy--matcher-desc) ,@(mapcar (lambda (x) (list (nth 0 x) `(progn - (ivy-set-action ',(nth 1 x)) + (setcar (ivy-state-action ivy-last) ,(cl-incf i)) (ivy-done)) (nth 2 x))) (cdr actions))