mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 03:53:47 -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
|
" 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 are found. However we want to treat non-matches and
|
||||||
" differences as non-erroneous behaviour; so we OR the command with one
|
" differences as non-erroneous behaviour; so we OR the command with one
|
||||||
" which always returns true.
|
" which always exits with success (0).
|
||||||
let cmd.= ' || true'
|
let cmd.= ' || exit 0'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let cmd .= '))'
|
let cmd .= '))'
|
||||||
|
|||||||
Reference in New Issue
Block a user