aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGong Qijian <gongqijian@gmail.com>2022-04-02 15:32:09 +0800
committerTom Dalziel <33435574+tomdl89@users.noreply.github.com>2022-04-11 23:43:01 +0200
commitcb3b3707c2ad170972ccb853096b8b9a0df01377 (patch)
tree6f72d6ea7d6281d537945369db6bd60d7744b766
parent067a29214d9d4e1fc4b4d29fc596ad4cefe7e492 (diff)
evil-ex-make-pattern: Don't transform the word boundaries into vim-style
-rw-r--r--evil-search.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/evil-search.el b/evil-search.el
index e343381..d87acad 100644
--- a/evil-search.el
+++ b/evil-search.el
@@ -434,7 +434,9 @@ expression and is not transformed."
(ignore-case (eq (evil-ex-regex-case regexp case) 'insensitive)))
;; possibly transform regular expression from vim-style to
;; Emacs-style.
- (if evil-ex-search-vim-style-regexp
+ (if (and evil-ex-search-vim-style-regexp
+ (not (or (string-match-p "\\`\\\\_?<" regexp)
+ (string-match-p "\\\\_?>\\'" regexp))))
(setq re (evil-transform-vim-style-regexp re))
;; Even for Emacs regular expressions we translate certain
;; whitespace sequences