diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-21 00:57:51 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-21 21:06:52 -0400 |
commit | 07022306e211ab57ddf97220b28ef875f2a3a9fe (patch) | |
tree | d64fa7d46b133f3bf49d3c0ef3bb71cff20cf520 /src | |
parent | 10ac5ada31b184cac6936a692b2c122d0d85a370 (diff) | |
download | rneovim-07022306e211ab57ddf97220b28ef875f2a3a9fe.tar.gz rneovim-07022306e211ab57ddf97220b28ef875f2a3a9fe.tar.bz2 rneovim-07022306e211ab57ddf97220b28ef875f2a3a9fe.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/eval/userfunc.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); } |