From 07022306e211ab57ddf97220b28ef875f2a3a9fe Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Wed, 21 Oct 2020 00:57:51 -0400 Subject: vim-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. https://github.com/vim/vim/commit/40d9da2a4395025169ebaf53a63618adfa737e96 --- src/nvim/eval/userfunc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nvim/eval/userfunc.c b/src/nvim/eval/userfunc.c index e0361048bc..4bc5f4a9b8 100644 --- a/src/nvim/eval/userfunc.c +++ b/src/nvim/eval/userfunc.c @@ -2920,8 +2920,10 @@ void ex_call(exarg_T *eap) if (!failed || eap->cstack->cs_trylevel > 0) { // 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); } -- cgit