]> granicus.if.org Git - vim/commitdiff
patch 8.2.2251: test failures in legacy script v8.2.2251
authorBram Moolenaar <Bram@vim.org>
Wed, 30 Dec 2020 20:16:37 +0000 (21:16 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 30 Dec 2020 20:16:37 +0000 (21:16 +0100)
Problem:    Test failures in legacy script.
Solution:   Check for Vim9 script.

src/eval.c
src/version.c

index 69be2af7725b7bd1f2337d9ae6e425c709a7caf3..06d2600b0cb1c3000ef715d0ddb203474643f199 100644 (file)
@@ -3777,7 +3777,7 @@ eval_index(
        {
            range = TRUE;
            ++*arg;
-           if (!IS_WHITE_OR_NUL(**arg) && **arg != ']')
+           if (vim9 && !IS_WHITE_OR_NUL(**arg) && **arg != ']')
            {
                semsg(_(e_white_space_required_before_and_after_str), ":");
                if (!empty1)
index a74a5d98c2f04d82b25d86d7bb7840e8b067a69d..f080e6866967f31e8c2a36e77bcee8d29d6ea151 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2251,
 /**/
     2250,
 /**/