From 721c96c8ef31ac0c91180d5291fdd22e223bc224 Mon Sep 17 00:00:00 2001 From: Jonathan Warner Date: Wed, 29 Jan 2014 11:20:29 +0100 Subject: [PATCH] Use POSIX and Windows compatible command. --- autoload/diff.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/diff.vim b/autoload/diff.vim index 2f55842..54d825e 100644 --- a/autoload/diff.vim +++ b/autoload/diff.vim @@ -17,8 +17,9 @@ function! diff#run_diff(realtime, use_external_grep) if a:use_external_grep && s:grep_available " grep exits with 1 when no matches are found. However we want to treat - " non-matches as non-erroneous behaviour; so we append ` || :`. - let cmd .= s:grep_command . ' || :' + " non-matches as non-erroneous behaviour; so we OR the command with one + " which always returns true. + let cmd .= s:grep_command . ' || true' endif let cmd .= ')'