Fix precedence in diff command.

This commit is contained in:
Andy Stewart
2014-01-27 13:54:11 +01:00
parent 8ada986fcf
commit afecd8711d

View File

@@ -4,7 +4,7 @@ let s:hunk_re = '^@@ -\(\d\+\),\?\(\d*\) +\(\d\+\),\?\(\d*\) @@'
function! diff#run_diff(realtime, use_external_grep) 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 if a:realtime
let blob_name = ':./' . fnamemodify(utility#file(),':t') let blob_name = ':./' . fnamemodify(utility#file(),':t')
@@ -21,6 +21,7 @@ function! diff#run_diff(realtime, use_external_grep)
let cmd .= s:grep_command . ' || :' let cmd .= s:grep_command . ' || :'
endif endif
let cmd .= ')'
let cmd = utility#escape(cmd) let cmd = utility#escape(cmd)
if a:realtime if a:realtime