Jump to correct window in exit handler

This commit is contained in:
Marco Hinz 2017-01-18 11:07:21 +01:00
parent 3f9c4e4ea0
commit 3aa8eb9ec6
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -39,6 +39,7 @@ endfunction
" Function: s:callback_exit {{{1
function! s:callback_exit(job_id, exitval) dict abort
call sy#verbose('s:callback_exit()', self.vcs)
call win_gotoid(self.winid)
call sy#repo#get_diff_{self.vcs}(a:exitval, self.stdoutbuf, self.do_register)
silent! unlet b:job_id_{self.vcs}
endfunction
@ -51,6 +52,7 @@ function! sy#repo#get_diff_start(vcs, do_register) abort
\ 'stdoutbuf': [],
\ 'vcs': a:vcs,
\ 'do_register': a:do_register,
\ 'winid': win_getid(),
\ }
let cmd = s:expand_cmd(a:vcs)