Changed the Vebugger_*UserAction activation to use try...finally
That way, errors in the event listeners will neither be swallowed nor will they prevent the user action from happening.
This commit is contained in:
parent
e3c069b5b6
commit
f98c830b82
@ -305,14 +305,9 @@ function! vebugger#userAction(action, ...)
|
||||
|
||||
try
|
||||
doautocmd User Vebugger_PreUserAction
|
||||
catch
|
||||
endtry
|
||||
|
||||
call call(s:debugger[a:action], a:000, s:debugger)
|
||||
|
||||
try
|
||||
finally
|
||||
call call(s:debugger[a:action], a:000, s:debugger)
|
||||
doautocmd User Vebugger_PostUserAction
|
||||
catch
|
||||
endtry
|
||||
else
|
||||
throw 'Current debugger does not support action '.a:action
|
||||
|
Loading…
Reference in New Issue
Block a user