Mercurial > vim
changeset 19421:208644ebdff8 v8.2.0268
patch 8.2.0268: trycatch test fails
Commit: https://github.com/vim/vim/commit/40d9da2a4395025169ebaf53a63618adfa737e96
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 17 10:01:24 2020 +0100
patch 8.2.0268: trycatch test fails
Problem: Trycatch test fails.
Solution: When calling function fails only check for following command, do
not give another error.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 17 Feb 2020 10:15:04 +0100 |
parents | 0e875bece7ac |
children | e5cd953790be |
files | src/userfunc.c src/version.c |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);