From e9826e3faed5df1e93962a3ab883ee50c5523c68 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Tue, 5 Dec 2017 21:14:36 +0800 Subject: [PATCH] Fix flygrep --- autoload/SpaceVim/plugins/flygrep.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/SpaceVim/plugins/flygrep.vim b/autoload/SpaceVim/plugins/flygrep.vim index 785b89ca5..f3cdb7d0b 100644 --- a/autoload/SpaceVim/plugins/flygrep.vim +++ b/autoload/SpaceVim/plugins/flygrep.vim @@ -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