From: Bram Moolenaar Date: Wed, 30 Dec 2020 20:16:37 +0000 (+0100) Subject: patch 8.2.2251: test failures in legacy script X-Git-Tag: v8.2.2251 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a04d447d3aaddb5b978dd9a0e0186007fde8e09e;p=vim patch 8.2.2251: test failures in legacy script Problem: Test failures in legacy script. Solution: Check for Vim9 script. --- diff --git a/src/eval.c b/src/eval.c index 69be2af77..06d2600b0 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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) diff --git a/src/version.c b/src/version.c index a74a5d98c..f080e6866 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2251, /**/ 2250, /**/