Skip to content

Commit

Permalink
evil-ex-make-pattern: Don't transform the word boundaries into vim-style
Browse files Browse the repository at this point in the history
  • Loading branch information
twlz0ne committed Apr 4, 2022
1 parent 3e41a82 commit 04ac63c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion evil-search.el
Expand Up @@ -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
Expand Down

0 comments on commit 04ac63c

Please sign in to comment.