diff options
| author | Gong Qijian <gongqijian@gmail.com> | 2022-04-02 15:32:09 +0800 |
|---|---|---|
| committer | Tom Dalziel <33435574+tomdl89@users.noreply.github.com> | 2022-04-11 23:43:01 +0200 |
| commit | cb3b3707c2ad170972ccb853096b8b9a0df01377 (patch) | |
| tree | 6f72d6ea7d6281d537945369db6bd60d7744b766 | |
| parent | 067a29214d9d4e1fc4b4d29fc596ad4cefe7e492 (diff) | |
evil-ex-make-pattern: Don't transform the word boundaries into vim-style
| -rw-r--r-- | evil-search.el | 4 |
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 |
