Fix exit callback
Vim provides 2 arguments to the exit handler whereas Neovim always provides 3. Change function signature to handle an optional third argument, even if it never gets used. Fixes #204.
This commit is contained in:
parent
8f3fc1c023
commit
faf5240823
@ -37,7 +37,7 @@ function! s:callback_stdout_vim(_job_id, data) dict abort
|
||||
endfunction
|
||||
|
||||
" Function: s:callback_exit {{{1
|
||||
function! s:callback_exit(job_id, exitval) dict abort
|
||||
function! s:callback_exit(job_id, exitval, ...) dict abort
|
||||
call sy#verbose('callback_exit()', self.vcs)
|
||||
call win_gotoid(self.winid)
|
||||
call sy#repo#get_diff_{self.vcs}(a:exitval, self.stdoutbuf, self.do_register)
|
||||
|
Loading…
Reference in New Issue
Block a user