From 412ae37d934f3a6a2786906edc1ec554dacd733e Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Sun, 16 Dec 2018 17:42:42 +0100 Subject: [PATCH] Add missing "catch all exceptions" clause --- autoload/sy/repo.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/sy/repo.vim b/autoload/sy/repo.vim index 6a2bc60..7a5b3a7 100644 --- a/autoload/sy/repo.vim +++ b/autoload/sy/repo.vim @@ -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