RCS: exit value of 1 means there are changes, 2 means error

Fixes #251
This commit is contained in:
Marco Hinz 2018-02-21 13:28:40 +01:00
parent d6e01780dc
commit 26ed57e0fe
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -184,7 +184,7 @@ endfunction
" Function: #get_diff_rcs {{{1
function! sy#repo#get_diff_rcs(sy, exitval, diff) abort
call sy#verbose('get_diff_rcs()', 'rcs')
let [found_diff, diff] = a:exitval ? [0, []] : [1, a:diff]
let [found_diff, diff] = a:exitval == 2 ? [0, []] : [1, a:diff]
call s:get_diff_end(a:sy, found_diff, 'rcs', diff)
endfunction