1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 21:00:03 +08:00

Fix flygrep

This commit is contained in:
wsdjeg 2017-12-05 21:14:36 +08:00
parent dc812ae0c7
commit e9826e3fae

View File

@ -40,8 +40,8 @@ function! s:flygrep(expr) abort
syn clear FileNames
catch
endtr
exe 'syn match FileNames /' . substitute(a:expr, '\([/\\]\)', '\\\1', 'g') . '/'
hi def link FileNames MoreMsg
call matchadd('FileNames', a:expr)
let s:grep_expr = a:expr
let s:grep_timer_id = timer_start(500, funcref('s:grep_timer'), {'repeat' : 1})
endfunction