mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-10 04:23:46 -05:00
Fix precedence in diff command.
This commit is contained in:
@@ -4,7 +4,7 @@ let s:hunk_re = '^@@ -\(\d\+\),\?\(\d*\) +\(\d\+\),\?\(\d*\) @@'
|
||||
|
||||
|
||||
function! diff#run_diff(realtime, use_external_grep)
|
||||
let cmd = 'git ls-files --error-unmatch' . utility#discard_stdout_and_stderr() . ' ' . shellescape(utility#file()) . ' && '
|
||||
let cmd = 'git ls-files --error-unmatch' . utility#discard_stdout_and_stderr() . ' ' . shellescape(utility#file()) . ' && ('
|
||||
|
||||
if a:realtime
|
||||
let blob_name = ':./' . fnamemodify(utility#file(),':t')
|
||||
@@ -21,6 +21,7 @@ function! diff#run_diff(realtime, use_external_grep)
|
||||
let cmd .= s:grep_command . ' || :'
|
||||
endif
|
||||
|
||||
let cmd .= ')'
|
||||
let cmd = utility#escape(cmd)
|
||||
|
||||
if a:realtime
|
||||
|
||||
Reference in New Issue
Block a user