mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.3416: second error is reported while exception is being thrown
Problem: Second error is reported while exception is being thrown. Solution: Do not check for trailing characters when already aborting. (closes #8842)
This commit is contained in:
@@ -5012,7 +5012,7 @@ ex_call(exarg_T *eap)
|
||||
clear_evalarg(&evalarg, eap);
|
||||
|
||||
// When inside :try we need to check for following "| catch".
|
||||
if (!failed || eap->cstack->cs_trylevel > 0)
|
||||
if (!aborting() && (!failed || eap->cstack->cs_trylevel > 0))
|
||||
{
|
||||
// Check for trailing illegal characters and a following command.
|
||||
arg = skipwhite(arg);
|
||||
|
Reference in New Issue
Block a user