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

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

[elpa] master fb64ea3 237/399: swiper.el (swiper-mc): Works for swiper-i


From: Oleh Krehel
Subject: [elpa] master fb64ea3 237/399: swiper.el (swiper-mc): Works for swiper-isearch
Date: Sat, 20 Jul 2019 14:57:31 -0400 (EDT)

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

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



reply via email to

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