diff --git a/plugin/eregex.vim b/plugin/eregex.vim index 487247e..97d780d 100644 --- a/plugin/eregex.vim +++ b/plugin/eregex.vim @@ -738,6 +738,9 @@ function! s:Ematch(...) let modifiers = substitute(offset, '\C[^' . s:str_modifiers . ']\+', "", "g") let offset = substitute(offset, '\C[' . s:str_modifiers . ']\+', "", "g") endif + if &ignorecase + let modifiers .= 'i' + endif let regex = s:ExtendedRegex2VimRegex(regex, modifiers) "v130 @@ -800,6 +803,9 @@ function! s:Esubstitute(...) range let modifiers = substitute(options, '\C[^' . s:str_modifiers . ']\+', "", "g") let options = substitute(options, '\C[SCDmM]', "", "g") endif + if &ignorecase + let modifiers .= 'i' + endif let regex = s:ExtendedRegex2VimRegex(regex, modifiers) "v130