Fix #4, supports ignorecase option
This commit is contained in:
parent
e0501e3ee6
commit
f01d0c30fc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user