aboutsummaryrefslogtreecommitdiff
path: root/evil-commands.el
diff options
context:
space:
mode:
authorTom Dalziel <tom_dl@hotmail.com>2022-04-15 15:56:44 +0100
committerTom Dalziel <33435574+tomdl89@users.noreply.github.com>2022-04-15 17:16:09 +0200
commitfd0644ebfc7e827ea790a7b8fb6c590aada6b225 (patch)
treed3a835fc76dd243ea7e3c466d4bdb0cd96f39108 /evil-commands.el
parent41006dc73d8c850d2a6378a3c026aedb16b80813 (diff)
Allow vim-style regexp for :global command
Diffstat (limited to 'evil-commands.el')
-rw-r--r--evil-commands.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/evil-commands.el b/evil-commands.el
index ad57b22..94b1ba7 100644
--- a/evil-commands.el
+++ b/evil-commands.el
@@ -3992,6 +3992,8 @@ This is the same as :%s//~/&"
(deactivate-mark deactivate-mark)
match markers)
(when (and pattern command)
+ (when evil-ex-search-vim-style-regexp
+ (setq pattern (evil-transform-vim-style-regexp pattern)))
(setq isearch-string pattern)
(isearch-update-ring pattern t)
(goto-char beg)