Fix get_diff_start_{vcs}() for older Vims

Fixes #212.
This commit is contained in:
Marco Hinz 2017-01-31 12:15:30 +01:00
parent 6d8837f878
commit f194e3aced
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -95,7 +95,7 @@ function! sy#repo#get_diff_start(vcs, do_register) abort
" Older Vim
else
let diff = split(s:run(a:vcs), '\n')
call sy#repo#get_diff_{a:vcs}(v:shell_error, diff, a:do_register)
call sy#repo#get_diff_{a:vcs}(b:sy, v:shell_error, diff, a:do_register)
endif
endfunction