correct error checking of shell output

This commit is contained in:
Marco Hinz 2013-03-11 00:00:12 +01:00
parent 87d66e1231
commit d42f629672

View File

@ -266,7 +266,7 @@ function! s:diff_get(path) abort
if executable('cvs')
let diff = system('cvs diff -U0 '. a:path .' 2>&1 | grep "^@@ "')
if !empty(diff)
if !v:shell_error
return diff
endif
endif