correct error checking of shell output
This commit is contained in:
parent
87d66e1231
commit
d42f629672
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user