diff --git a/plugin/eregex.vim b/plugin/eregex.vim index 84c37ec..5fdcb11 100644 --- a/plugin/eregex.vim +++ b/plugin/eregex.vim @@ -742,10 +742,6 @@ function! s:Ematch(...) let offset = substitute(offset, '\C[' . s:str_modifiers . ']\+', "", "g") endif - if &ignorecase && match(modifiers, 'I') == -1 - let modifiers .= 'i' - endif - let regex = s:ExtendedRegex2VimRegex(regex, modifiers) "v130 "set s:bakregex @@ -806,9 +802,6 @@ function! s:Esubstitute(...) range let modifiers = substitute(options, '\C[^' . s:str_modifiers . ']\+', "", "g") let options = substitute(options, '\C[SCDmM]', "", "g") endif - if &ignorecase && match(modifiers, 'I') == -1 - let modifiers .= 'i' - endif let regex = s:ExtendedRegex2VimRegex(regex, modifiers) "v130