From abb9ab7674601c2e90ecf1ca29f575a1effe9a4c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 13 May 2020 15:23:19 -0400 Subject: [PATCH] Fix :mc/REGEXP not placing real cursor in correct position With ':mc/abc' we should get a b c a b [a]bc a [a]bc c [a]bc b c a b c Instead, we got a b c a b abc a [a]bc c [a]bc b c a b c And the real cursor would be somewhere else (on the same column it was left in when you were in visual mode). --- modules/editor/multiple-cursors/autoload/evil-mc.el | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/editor/multiple-cursors/autoload/evil-mc.el b/modules/editor/multiple-cursors/autoload/evil-mc.el index 886ca9c0d..cab055caa 100644 --- a/modules/editor/multiple-cursors/autoload/evil-mc.el +++ b/modules/editor/multiple-cursors/autoload/evil-mc.el @@ -56,6 +56,7 @@ PATTERN as literal. PATTERN is a delimited regexp (the same that :g or :s uses). FLAGS can be g and/or i; which mean the same thing they do in `evil-ex-substitute'." :evil-mc t + :keep-visual t (interactive "") (unless (and (stringp pattern) (not (string-empty-p pattern)))