From a1a29b87eeee6bbc0853e505b487d26d4ebae58f Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Thu, 27 Feb 2014 09:42:00 +0100 Subject: [PATCH] Use cross-platform way to exit with success. `exit 0` works across all shells (as far as I know). --- autoload/diff.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/diff.vim b/autoload/diff.vim index e3ffa00..aab514a 100644 --- a/autoload/diff.vim +++ b/autoload/diff.vim @@ -24,8 +24,8 @@ function! diff#run_diff(realtime, use_external_grep) " grep exits with 1 when no matches are found; diff exits with 1 when " differences are found. However we want to treat non-matches and " differences as non-erroneous behaviour; so we OR the command with one - " which always returns true. - let cmd.= ' || true' + " which always exits with success (0). + let cmd.= ' || exit 0' endif let cmd .= '))'