Add missing "catch all exceptions" clause

This commit is contained in:
Marco Hinz 2018-12-16 17:42:42 +01:00
parent ea87e05e6f
commit 412ae37d93
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -99,6 +99,7 @@ function! sy#repo#get_diff_start(vcs) abort
\ 'close_cb': function('s:callback_vim_close', options),
\ }
let b:sy_job_id_{a:vcs} = job_start(cmd, opts)
catch
finally
execute chdir fnameescape(cwd)
endtry