parent
e43155f3e1
commit
f7678884f0
@ -40,6 +40,9 @@ endfunction
|
|||||||
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 sy#verbose('callback_exit()', self.vcs)
|
||||||
call win_gotoid(self.winid)
|
call win_gotoid(self.winid)
|
||||||
|
if self.bufnr != bufnr('%')
|
||||||
|
return
|
||||||
|
endif
|
||||||
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
|
||||||
@ -231,6 +234,7 @@ function! s:initialize_job(vcs, do_register) abort
|
|||||||
\ 'stdoutbuf': [],
|
\ 'stdoutbuf': [],
|
||||||
\ 'vcs': a:vcs,
|
\ 'vcs': a:vcs,
|
||||||
\ 'do_register': a:do_register,
|
\ 'do_register': a:do_register,
|
||||||
|
\ 'bufnr': bufnr('%'),
|
||||||
\ 'winid': win_getid(),
|
\ 'winid': win_getid(),
|
||||||
\ }
|
\ }
|
||||||
return [cmd, options]
|
return [cmd, options]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user