From 1321257317b7d28228a6a9a0d612f81f70290b4c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 1 Aug 2021 22:01:30 +0200 Subject: [PATCH] patch 8.2.3273: autocmd test fails Problem: Autocmd test fails. Solution: Require white space before the "{" that starts a block. --- src/userfunc.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/userfunc.c b/src/userfunc.c index 01c44d440..5cb3d92e6 100644 --- a/src/userfunc.c +++ b/src/userfunc.c @@ -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; diff --git a/src/version.c b/src/version.c index ba58b2399..b15034ecf 100644 --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3273, /**/ 3272, /**/ -- 2.40.0