1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 07:20:04 +08:00

Fix highlight

This commit is contained in:
wsdjeg 2018-02-22 09:46:33 +08:00
parent ce5333c795
commit b5df733e54
2 changed files with 2 additions and 1 deletions

View File

@ -152,6 +152,7 @@ function! s:start_replace() abort
if !empty(replace_text)
call SpaceVim#plugins#iedit#start({'expr' : replace_text}, line('w0'), line('w$'))
endif
let s:hi_id = matchadd('FlyGrepPattern', '\c' . join(split(replace_text), '\|'), 1)
redrawstatus
endfunction
" }}}

View File

@ -4,5 +4,5 @@ endif
let b:current_syntax = "SpaceVimFlyGrep"
syntax case ignore
syn match FileName /[^:]*:\d\+:\d\+:/
hi def link FileName Comment
call matchadd('FileName', '[^:]*:\d\+:\d\+:', 2)