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.
40d9da2a43
This commit is contained in:
Jan Edmund Lazo
2020-10-21 00:57:51 -04:00
parent 10ac5ada31
commit 07022306e2

View File

@@ -2920,8 +2920,10 @@ void ex_call(exarg_T *eap)
if (!failed || eap->cstack->cs_trylevel > 0) { if (!failed || eap->cstack->cs_trylevel > 0) {
// Check for trailing illegal characters and a following command. // Check for trailing illegal characters and a following command.
if (!ends_excmd(*arg)) { if (!ends_excmd(*arg)) {
if (!failed) {
emsg_severe = true; emsg_severe = true;
EMSG(_(e_trailing)); EMSG(_(e_trailing));
}
} else { } else {
eap->nextcmd = check_nextcmd(arg); eap->nextcmd = check_nextcmd(arg);
} }