Skip to content

Commit

Permalink
Escape grep's argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
airblade committed Feb 26, 2014
1 parent aeec864 commit e9db45e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/diff.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let s:grep_available = executable('grep')
let s:grep_command = ' | ' . (g:gitgutter_escape_grep ? '\grep' : 'grep') . ' -e "^@@ "'
let s:grep_command = ' | ' . (g:gitgutter_escape_grep ? '\grep' : 'grep') . ' -e ' . utility#shellescape('^@@ ')
let s:hunk_re = '^@@ -\(\d\+\),\?\(\d*\) +\(\d\+\),\?\(\d*\) @@'


Expand Down

0 comments on commit e9db45e

Please sign in to comment.