We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f7c1549 + 8d27cd2 commit ec87af6Copy full SHA for ec87af6
plugin/vim-ripgrep.vim
@@ -25,7 +25,7 @@ if !exists('g:rg_window_location')
25
endif
26
27
fun! g:RgVisual() range
28
- call s:RgGrepContext(function('s:RgSearch'), s:RgGetVisualSelection())
+ call s:RgGrepContext(function('s:RgSearch'), '"' . s:RgGetVisualSelection() . '"')
29
endfun
30
31
fun! s:Rg(txt)
@@ -61,7 +61,7 @@ fun! s:RgSearch(txt)
61
if &smartcase == 1
62
let l:rgopts = l:rgopts . '-S '
63
64
- silent! exe 'grep! ' . l:rgopts . '"' . a:txt . '"'
+ silent! exe 'grep! ' . l:rgopts . a:txt
65
if len(getqflist())
66
exe g:rg_window_location 'copen'
67
redraw!
0 commit comments