Skip to content

Commit

Permalink
swap term cap strings during search
Browse files Browse the repository at this point in the history
  • Loading branch information
jremmen committed Sep 27, 2016
1 parent 0f79255 commit da940c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugin/vim-ripgrep.vim
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,19 @@ 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)
else
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
Expand Down

0 comments on commit da940c2

Please sign in to comment.