summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-08-01 22:01:30 +0200
committerBram Moolenaar <Bram@vim.org>2021-08-01 22:01:30 +0200
commit1321257317b7d28228a6a9a0d612f81f70290b4c (patch)
tree704d59ea9d88618e5e0f5fa7110acd74be377e16
parente041dde7bb9157644fa5135a252c84924b9ea433 (diff)
patch 8.2.3273: autocmd test failsv8.2.3273
Problem: Autocmd test fails. Solution: Require white space before the "{" that starts a block.
-rw-r--r--src/userfunc.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/userfunc.c b/src/userfunc.c
index 01c44d4401..5cb3d92e6b 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 ba58b23994..b15034ecf3 100644
--- a/src/version.c
+++ b/src/version.c
@@ -756,6 +756,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 3273,
+/**/
3272,
/**/
3271,