Merge pull request #14 from chocolateboy/refix_ignorecase_and_smartcase
correctly handle &ignorecase and &smartcase (re-fixes #4 and #7)
This commit is contained in:
commit
543ff4c2cb
@ -742,10 +742,6 @@ function! s:Ematch(...)
|
|||||||
let offset = substitute(offset, '\C[' . s:str_modifiers . ']\+', "", "g")
|
let offset = substitute(offset, '\C[' . s:str_modifiers . ']\+', "", "g")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if &ignorecase && match(modifiers, 'I') == -1
|
|
||||||
let modifiers .= 'i'
|
|
||||||
endif
|
|
||||||
|
|
||||||
let regex = s:ExtendedRegex2VimRegex(regex, modifiers)
|
let regex = s:ExtendedRegex2VimRegex(regex, modifiers)
|
||||||
"v130
|
"v130
|
||||||
"set s:bakregex
|
"set s:bakregex
|
||||||
@ -806,9 +802,6 @@ function! s:Esubstitute(...) range
|
|||||||
let modifiers = substitute(options, '\C[^' . s:str_modifiers . ']\+', "", "g")
|
let modifiers = substitute(options, '\C[^' . s:str_modifiers . ']\+', "", "g")
|
||||||
let options = substitute(options, '\C[SCDmM]', "", "g")
|
let options = substitute(options, '\C[SCDmM]', "", "g")
|
||||||
endif
|
endif
|
||||||
if &ignorecase && match(modifiers, 'I') == -1
|
|
||||||
let modifiers .= 'i'
|
|
||||||
endif
|
|
||||||
|
|
||||||
let regex = s:ExtendedRegex2VimRegex(regex, modifiers)
|
let regex = s:ExtendedRegex2VimRegex(regex, modifiers)
|
||||||
"v130
|
"v130
|
||||||
|
Loading…
Reference in New Issue
Block a user