Jump to correct window in exit handler
This commit is contained in:
parent
3f9c4e4ea0
commit
3aa8eb9ec6
@ -39,6 +39,7 @@ endfunction
|
|||||||
" Function: s:callback_exit {{{1
|
" 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('s:callback_exit()', self.vcs)
|
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)
|
call sy#repo#get_diff_{self.vcs}(a:exitval, self.stdoutbuf, self.do_register)
|
||||||
silent! unlet b:job_id_{self.vcs}
|
silent! unlet b:job_id_{self.vcs}
|
||||||
endfunction
|
endfunction
|
||||||
@ -51,6 +52,7 @@ function! sy#repo#get_diff_start(vcs, do_register) abort
|
|||||||
\ 'stdoutbuf': [],
|
\ 'stdoutbuf': [],
|
||||||
\ 'vcs': a:vcs,
|
\ 'vcs': a:vcs,
|
||||||
\ 'do_register': a:do_register,
|
\ 'do_register': a:do_register,
|
||||||
|
\ 'winid': win_getid(),
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
let cmd = s:expand_cmd(a:vcs)
|
let cmd = s:expand_cmd(a:vcs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user