mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 12:40:05 +08:00
Consider ignorecase and smartcase
This commit is contained in:
parent
b5df733e54
commit
f5a4953877
@ -77,7 +77,7 @@ function! s:flygrep(expr) abort
|
|||||||
catch
|
catch
|
||||||
endtr
|
endtr
|
||||||
hi def link FlyGrepPattern MoreMsg
|
hi def link FlyGrepPattern MoreMsg
|
||||||
let s:hi_id = matchadd('FlyGrepPattern', '\c' . join(split(a:expr), '\|'), 1)
|
let s:hi_id = matchadd('FlyGrepPattern', join(split(a:expr), '\|'), 1)
|
||||||
let s:grep_expr = a:expr
|
let s:grep_expr = a:expr
|
||||||
try
|
try
|
||||||
call timer_stop(s:grep_timer_id)
|
call timer_stop(s:grep_timer_id)
|
||||||
@ -152,7 +152,7 @@ function! s:start_replace() abort
|
|||||||
if !empty(replace_text)
|
if !empty(replace_text)
|
||||||
call SpaceVim#plugins#iedit#start({'expr' : replace_text}, line('w0'), line('w$'))
|
call SpaceVim#plugins#iedit#start({'expr' : replace_text}, line('w0'), line('w$'))
|
||||||
endif
|
endif
|
||||||
let s:hi_id = matchadd('FlyGrepPattern', '\c' . join(split(replace_text), '\|'), 1)
|
let s:hi_id = matchadd('FlyGrepPattern', join(split(replace_text), '\|'), 1)
|
||||||
redrawstatus
|
redrawstatus
|
||||||
endfunction
|
endfunction
|
||||||
" }}}
|
" }}}
|
||||||
|
Loading…
Reference in New Issue
Block a user