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).
This commit is contained in:
Henrik Lissner 2020-05-13 15:23:19 -04:00
parent f83499c7a7
commit abb9ab7674
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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 "<R><//!><!>")
(unless (and (stringp pattern)
(not (string-empty-p pattern)))