branch: master commit fb64ea36738b9cca3e491eaca9000628650c0244 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
swiper.el (swiper-mc): Works for swiper-isearch Fixes #2058 --- swiper.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/swiper.el b/swiper.el index 71c3805..95bd1d0 100644 --- a/swiper.el +++ b/swiper.el @@ -320,13 +320,14 @@ Make sure `swiper-mc' is on `mc/cmds-to-run-once' list." (error "Multiple-cursors isn't installed")) (unless (window-minibuffer-p) (error "Call me only from `swiper'")) - (let ((cands (nreverse ivy--old-cands))) + (let ((cands (nreverse ivy--old-cands)) + (action (ivy--get-action ivy-last))) (unless (string= ivy-text "") (ivy-exit-with-action (lambda (_) (let (cand) (while (setq cand (pop cands)) - (swiper--action cand) + (funcall action cand) (when cands (mc/create-fake-cursor-at-point)))) (multiple-cursors-mode 1))))))