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:
IdanArye 2015-03-01 21:32:20 +02:00
parent e3c069b5b6
commit f98c830b82

View File

@ -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