From 3673b17a7d5f8d6463ccc01011263828e72f5de9 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Tue, 5 Dec 2017 21:53:36 +0800 Subject: [PATCH] Fix: Flygrep match pattern override FileName --- autoload/SpaceVim/plugins/flygrep.vim | 2 +- syntax/SpaceVimFlyGrep.vim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/SpaceVim/plugins/flygrep.vim b/autoload/SpaceVim/plugins/flygrep.vim index f3cdb7d0b..7b49ab8ea 100644 --- a/autoload/SpaceVim/plugins/flygrep.vim +++ b/autoload/SpaceVim/plugins/flygrep.vim @@ -41,7 +41,7 @@ function! s:flygrep(expr) abort catch endtr hi def link FileNames MoreMsg - call matchadd('FileNames', a:expr) + call matchadd('FileNames', a:expr, 1) let s:grep_expr = a:expr let s:grep_timer_id = timer_start(500, funcref('s:grep_timer'), {'repeat' : 1}) endfunction diff --git a/syntax/SpaceVimFlyGrep.vim b/syntax/SpaceVimFlyGrep.vim index bb5782fe3..ba7f9bf1d 100644 --- a/syntax/SpaceVimFlyGrep.vim +++ b/syntax/SpaceVimFlyGrep.vim @@ -1,8 +1,8 @@ if exists("b:current_syntax") - finish + finish endif let b:current_syntax = "SpaceVimFlyGrep" syntax case ignore -syn match FileName /[^:]*:\d\+:/ hi def link FileName Comment +call matchadd('FileName', '[^:]*:\d\+:', 2)