diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-09-08 15:33:30 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-09-08 15:33:30 +0200 |
commit | 36f691f5f1d0676f080cc97d697d742ed5cc8251 (patch) | |
tree | f409093af58654e889d8dba96aa743ac6e28e884 /src/userfunc.c | |
parent | fc3b775055c2361e507a1a44008d5a7d37eecf14 (diff) | |
download | vim-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.c | 2 |
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); |