]> granicus.if.org Git - vim/commitdiff
patch 8.2.2213: checking white space around -> is not backwards compatible v8.2.2213
authorBram Moolenaar <Bram@vim.org>
Fri, 25 Dec 2020 15:11:53 +0000 (16:11 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 25 Dec 2020 15:11:53 +0000 (16:11 +0100)
Problem:    Checking white space around -> is not backwards compatible.
Solution:   Only check white space around =>.

src/userfunc.c
src/version.c

index ea6fa10d8bce41fa6085a619f6065e6da41f7410..2bae9ef90cda06fff70abf8bc1c507832c212246 100644 (file)
@@ -570,7 +570,7 @@ get_lambda_tv(
                                            &varargs, NULL, FALSE, NULL, NULL);
     if (ret == FAIL
                  || (s = skip_arrow(*arg, equal_arrow, &ret_type,
-                                                       &white_error)) == NULL)
+                                  equal_arrow ? &white_error : NULL)) == NULL)
     {
        if (types_optional)
            ga_clear_strings(&argtypes);
index 75a1e4b2d0f9ccace75f228e9594c6b90888c5cc..2a85bb3260538c51429969b34293adbf5bdf4177 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2213,
 /**/
     2212,
 /**/