emacs-evil / evil

The extensible vi layer for Emacs.
GNU General Public License v3.0
3.35k stars 283 forks source link

Backreferences in search fail to work with vim-style-regexp #1895

Closed totallyuniquelily closed 5 months ago

totallyuniquelily commented 5 months ago

Issue type

Environment

Emacs version: GNU Emacs 29.3 (build 2, x86_64-unknown-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-03-25 Operating System: Void Linux Evil version: Evil version 1.15.0 (reproduced with github master as well) Evil installation type: Doom (which I think uses ELPA) Graphical/Terminal: Graphical Tested in a make emacs session (see CONTRIBUTING.md): Yes

Reproduction steps

Expected behavior

search would find "ee" and "oo"

Actual behavior

search fails

Further notes

\(.\)\1 works the same in (neo)vim and isearch. just not in evil-search with evil-ex-search-vim-style-regexp enabled. (and works if that variable is set to nil)

tomdl89 commented 5 months ago

Thanks @totallyuniquelily I can reproduce this. Will take a look when I get some time.

tomdl89 commented 5 months ago

@totallyuniquelily this should now be fixed in master. Let me know if you observe otherwise.