Merge pull request #27 from kkpattern/master

Hide the search output during the search.
This commit is contained in:
John Remmen 2018-08-13 21:59:00 -07:00 committed by GitHub
commit f7c1549c0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,8 +82,12 @@ fun! s:RgGrepContext(search, txt)
let &grepformat = g:rg_format
let l:te = &t_te
let l:ti = &t_ti
let l:shellpipe_bak=&shellpipe
set t_te=
set t_ti=
if !has("win32")
let &shellpipe="&>"
endif
if exists('g:rg_derive_root')
call s:RgPathContext(a:search, a:txt)
@ -91,6 +95,7 @@ fun! s:RgGrepContext(search, txt)
call a:search(a:txt)
endif
let &shellpipe=l:shellpipe_bak
let &t_te=l:te
let &t_ti=l:ti
let &grepprg = l:grepprgb