diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-17 10:01:24 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-17 10:01:24 +0100 |
commit | 40d9da2a4395025169ebaf53a63618adfa737e96 (patch) | |
tree | 99b692eb931c020e2a86f2a0f0893f603e4aec69 | |
parent | e51bb17dd0d51384375830ee2a1df30c08121443 (diff) | |
download | vim-git-40d9da2a4395025169ebaf53a63618adfa737e96.tar.gz |
patch 8.2.0268: trycatch test failsv8.2.0268
Problem: Trycatch test fails.
Solution: When calling function fails only check for following command, do
not give another error.
-rw-r--r-- | src/userfunc.c | 7 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/userfunc.c b/src/userfunc.c index d1d497d69..fc2161f51 100644 --- a/src/userfunc.c +++ b/src/userfunc.c @@ -3560,8 +3560,11 @@ ex_call(exarg_T *eap) // Check for trailing illegal characters and a following command. if (!ends_excmd(*arg)) { - emsg_severe = TRUE; - emsg(_(e_trailing)); + if (!failed) + { + emsg_severe = TRUE; + emsg(_(e_trailing)); + } } else eap->nextcmd = check_nextcmd(arg); diff --git a/src/version.c b/src/version.c index 73a70cdf2..afac47d7e 100644 --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 268, +/**/ 267, /**/ 266, |