summaryrefslogtreecommitdiff
path: root/src/userfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-09-08 15:33:30 +0200
committerBram Moolenaar <Bram@vim.org>2021-09-08 15:33:30 +0200
commit36f691f5f1d0676f080cc97d697d742ed5cc8251 (patch)
treef409093af58654e889d8dba96aa743ac6e28e884 /src/userfunc.c
parentfc3b775055c2361e507a1a44008d5a7d37eecf14 (diff)
downloadvim-git-36f691f5f1d0676f080cc97d697d742ed5cc8251.tar.gz
patch 8.2.3416: second error is reported while exception is being thrownv8.2.3416
Problem: Second error is reported while exception is being thrown. Solution: Do not check for trailing characters when already aborting. (closes #8842)
Diffstat (limited to 'src/userfunc.c')
-rw-r--r--src/userfunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userfunc.c b/src/userfunc.c
index e51df51ff..dc0a939eb 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -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);