Fix #7, treat 'I' as noignorecase modifier
This commit is contained in:
parent
7fb6aeed95
commit
83707ceb5b
@ -738,7 +738,8 @@ function! s:Ematch(...)
|
|||||||
let modifiers = substitute(offset, '\C[^' . s:str_modifiers . ']\+', "", "g")
|
let modifiers = substitute(offset, '\C[^' . s:str_modifiers . ']\+', "", "g")
|
||||||
let offset = substitute(offset, '\C[' . s:str_modifiers . ']\+', "", "g")
|
let offset = substitute(offset, '\C[' . s:str_modifiers . ']\+', "", "g")
|
||||||
endif
|
endif
|
||||||
if &ignorecase
|
|
||||||
|
if &ignorecase && match(modifiers, 'I') == -1
|
||||||
let modifiers .= 'i'
|
let modifiers .= 'i'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -803,7 +804,7 @@ 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
|
if &ignorecase && match(modifiers, 'I') == -1
|
||||||
let modifiers .= 'i'
|
let modifiers .= 'i'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user