]> granicus.if.org Git - vim/commitdiff
patch 8.2.0268: trycatch test fails v8.2.0268
authorBram Moolenaar <Bram@vim.org>
Mon, 17 Feb 2020 09:01:24 +0000 (10:01 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 17 Feb 2020 09:01:24 +0000 (10:01 +0100)
Problem:    Trycatch test fails.
Solution:   When calling function fails only check for following command, do
            not give another error.

src/userfunc.c
src/version.c

index d1d497d690fcd3250138efb9dafb1504ee469d9f..fc2161f51d4862489c00d5a58e04bc8474f18dc8 100644 (file)
@@ -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);
index 73a70cdf2ce7dbf2df988b6cee139070cd1be7d9..afac47d7e96bfe76b10e89358062e625336c59b0 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    268,
 /**/
     267,
 /**/