mirror of
https://github.com/jremmen/vim-ripgrep.git
synced 2025-12-26 19:45:29 +08:00
swap term cap strings during search
This commit is contained in:
parent
0f792556e5
commit
da940c29ac
1 changed files with 6 additions and 0 deletions
|
|
@ -52,6 +52,10 @@ fun! s:RgGrepContext(search, txt)
|
|||
let l:grepformatb = &grepformat
|
||||
let &grepprg = g:rg_command
|
||||
let &grepformat = g:rg_format
|
||||
let l:te = &t_te
|
||||
let l:ti = &t_ti
|
||||
set t_te=
|
||||
set t_ti=
|
||||
|
||||
if exists('g:rg_derive_root')
|
||||
call s:RgPathContext(a:search, a:txt)
|
||||
|
|
@ -59,6 +63,8 @@ fun! s:RgGrepContext(search, txt)
|
|||
call a:search(a:txt)
|
||||
endif
|
||||
|
||||
let &t_te=l:te
|
||||
let &t_ti=l:ti
|
||||
let &grepprg = l:grepprgb
|
||||
let &grepformat = l:grepformatb
|
||||
endfun
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue