Add regexp support to :mc ex command

This commit is contained in:
Henrik Lissner 2018-07-13 23:35:52 +02:00
parent b60c83f6d1
commit 3db462ba54
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -55,8 +55,8 @@ cursor at the final match. If BANG, then treat PATTERN as literal."
(user-error "A regexp pattern is required"))
(require 'evil-mc)
(setq evil-mc-pattern
(cons (evil-mc-make-pattern (if bang (regexp-quote pattern) pattern)
nil)
(cons (evil-ex-make-search-pattern
(if bang (regexp-quote pattern) pattern))
(list beg end type)))
(save-excursion
(evil-with-restriction beg end