mirror of
https://github.com/jremmen/vim-ripgrep.git
synced 2025-12-27 04:04:58 +08:00
Merge 1936e105cc into 2bb2425387
This commit is contained in:
commit
5205a3bf40
1 changed files with 2 additions and 1 deletions
|
|
@ -61,7 +61,8 @@ fun! s:RgSearch(txt)
|
|||
if &smartcase == 1
|
||||
let l:rgopts = l:rgopts . '-S '
|
||||
endif
|
||||
silent! exe 'grep! ' . l:rgopts . a:txt
|
||||
" Escaping Command-line special characters '#', '%' (:h :_%), and '|' (:h :bar)
|
||||
silent! exe 'grep! ' . l:rgopts . escape(a:txt, "#%|")
|
||||
if len(getqflist())
|
||||
exe g:rg_window_location 'copen'
|
||||
redraw!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue