]> granicus.if.org Git - vim/commitdiff
patch 8.2.3273: autocmd test fails v8.2.3273
authorBram Moolenaar <Bram@vim.org>
Sun, 1 Aug 2021 20:01:30 +0000 (22:01 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 1 Aug 2021 20:01:30 +0000 (22:01 +0200)
Problem:    Autocmd test fails.
Solution:   Require white space before the "{" that starts a block.

src/userfunc.c
src/version.c

index 01c44d44018fbcd4699593255aaaad3b92ba5951..5cb3d92e6bb16603dfad0b1ea252fc6eb6c1add1 100644 (file)
@@ -901,7 +901,7 @@ get_function_body(
                end = p + STRLEN(p) - 1;
                while (end > p && VIM_ISWHITE(*end))
                    --end;
-               if (end > p && *end == '{')
+               if (end > p + 1 && *end == '{' && VIM_ISWHITE(end[-1]))
                {
                    int     is_block;
 
index ba58b2399415f515aefb10936392428ac2916a5f..b15034ecf3f1b2d86e0a630f56cc175e6fb625bd 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3273,
 /**/
     3272,
 /**/