]> granicus.if.org Git - vim/commitdiff
patch 8.2.3343: Vim9: autoload test fails v8.2.3343
authorBram Moolenaar <Bram@vim.org>
Sat, 14 Aug 2021 12:59:27 +0000 (14:59 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 14 Aug 2021 12:59:27 +0000 (14:59 +0200)
Problem:    Vim9: autoload test fails.
Solution:   Adjust the way the second message is avoided

src/evalvars.c
src/version.c

index 3dc30e92beaf6bf6219b0bfc89723ee0b3b9167c..90dc7fbd1b94c4ab15592809d634432704e7e7ff 100644 (file)
@@ -1184,7 +1184,6 @@ list_arg_vars(exarg_T *eap, char_u *arg, int *first)
     char_u     *arg_subsc;
     char_u     *tofree;
     typval_T    tv;
-    int                prev_uncaught_emsg = uncaught_emsg;
 
     while (!ends_excmd2(eap->cmd, arg) && !got_int)
     {
@@ -1194,7 +1193,7 @@ list_arg_vars(exarg_T *eap, char_u *arg, int *first)
            if (!VIM_ISWHITE(*arg) && !ends_excmd(*arg))
            {
                emsg_severe = TRUE;
-               if (uncaught_emsg == prev_uncaught_emsg)
+               if (!did_emsg)
                    semsg(_(e_trailing_arg), arg);
                break;
            }
index 71633d7416b7227b6ec49e4314ba9ec6153b13c1..b493c634150cee414e04f181e030bf9a64585234 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3343,
 /**/
     3342,
 /**/