Skip to content

Commit

Permalink
swiper.el (swiper-mc): Works for swiper-isearch
Browse files Browse the repository at this point in the history
  • Loading branch information
abo-abo committed May 13, 2019
1 parent eee9716 commit fb64ea3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions swiper.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))))))
Expand Down

0 comments on commit fb64ea3

Please sign in to comment.