Add missing "catch all exceptions" clause
This commit is contained in:
parent
ea87e05e6f
commit
412ae37d93
@ -99,6 +99,7 @@ function! sy#repo#get_diff_start(vcs) abort
|
|||||||
\ 'close_cb': function('s:callback_vim_close', options),
|
\ 'close_cb': function('s:callback_vim_close', options),
|
||||||
\ }
|
\ }
|
||||||
let b:sy_job_id_{a:vcs} = job_start(cmd, opts)
|
let b:sy_job_id_{a:vcs} = job_start(cmd, opts)
|
||||||
|
catch
|
||||||
finally
|
finally
|
||||||
execute chdir fnameescape(cwd)
|
execute chdir fnameescape(cwd)
|
||||||
endtry
|
endtry
|
||||||
|
Loading…
x
Reference in New Issue
Block a user