Skip to content

Commit

Permalink
Escape # and % passed to &grepprg
Browse files Browse the repository at this point in the history
Fixes rking#67
  • Loading branch information
blueyed authored and kassio committed Mar 11, 2014
1 parent 40cf9c8 commit fbe9281
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/ack.vim
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ function! s:Ack(cmd, args)
try
let &grepprg=g:ackprg
let &grepformat=g:ackformat
silent execute a:cmd . " " . escape(l:grepargs, '|')
" NOTE: we escape special chars, but not everything using shellescape to
" allow for passing arguments etc
silent execute a:cmd . " " . escape(l:grepargs, '|#%')
finally
let &grepprg=grepprg_bak
let &grepformat=grepformat_bak
Expand Down

0 comments on commit fbe9281

Please sign in to comment.