mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-13 15:07:58 +08:00
Fix flygrep
This commit is contained in:
parent
dc812ae0c7
commit
e9826e3fae
@ -40,8 +40,8 @@ function! s:flygrep(expr) abort
|
|||||||
syn clear FileNames
|
syn clear FileNames
|
||||||
catch
|
catch
|
||||||
endtr
|
endtr
|
||||||
exe 'syn match FileNames /' . substitute(a:expr, '\([/\\]\)', '\\\1', 'g') . '/'
|
|
||||||
hi def link FileNames MoreMsg
|
hi def link FileNames MoreMsg
|
||||||
|
call matchadd('FileNames', a:expr)
|
||||||
let s:grep_expr = a:expr
|
let s:grep_expr = a:expr
|
||||||
let s:grep_timer_id = timer_start(500, funcref('s:grep_timer'), {'repeat' : 1})
|
let s:grep_timer_id = timer_start(500, funcref('s:grep_timer'), {'repeat' : 1})
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user