Use cross-platform way to exit with success.

`exit 0` works across all shells (as far as I know).
This commit is contained in:
Andy Stewart
2014-02-27 09:42:00 +01:00
parent e9db45e36d
commit a1a29b87ee

View File

@@ -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 .= '))'