Fix redirect shellpipe cause no match on windows platform bug.

This commit is contained in:
Zhang Kai 2018-08-14 12:34:41 +08:00
parent 552232da7c
commit d112b6127f

View file

@ -61,7 +61,9 @@ fun! s:RgGrepContext(search, txt)
let l:shellpipe_bak=&shellpipe
set t_te=
set t_ti=
let &shellpipe="&>"
if !has("win32")
let &shellpipe="&>"
endif
if exists('g:rg_derive_root')
call s:RgPathContext(a:search, a:txt)