0
0
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:
Bram Moolenaar
2021-09-08 15:33:30 +02:00
parent fc3b775055
commit 36f691f5f1
3 changed files with 27 additions and 1 deletions

View File

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