Use POSIX and Windows compatible command.

This commit is contained in:
Jonathan Warner
2014-01-29 11:20:29 +01:00
committed by Andy Stewart
parent c7af455c95
commit 721c96c8ef

View File

@@ -17,8 +17,9 @@ function! diff#run_diff(realtime, use_external_grep)
if a:use_external_grep && s:grep_available if a:use_external_grep && s:grep_available
" grep exits with 1 when no matches are found. However we want to treat " grep exits with 1 when no matches are found. However we want to treat
" non-matches as non-erroneous behaviour; so we append ` || :`. " non-matches as non-erroneous behaviour; so we OR the command with one
let cmd .= s:grep_command . ' || :' " which always returns true.
let cmd .= s:grep_command . ' || true'
endif endif
let cmd .= ')' let cmd .= ')'