branch: elpa/evil
commit cb3b3707c2ad170972ccb853096b8b9a0df01377
Author: Gong Qijian <gongqij...@gmail.com>
Commit: Tom Dalziel <33435574+tomd...@users.noreply.github.com>

    evil-ex-make-pattern: Don't transform the word boundaries into vim-style
---
 evil-search.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/evil-search.el b/evil-search.el
index e343381887..d87acadbdb 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

Reply via email to