mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Use cross-platform way to exit with success.
`exit 0` works across all shells (as far as I know).
This commit is contained in:
@@ -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 .= '))'
|
||||
|
||||
Reference in New Issue
Block a user