Skip to content

Commit 1321257

Browse files
committed
patch 8.2.3273: autocmd test fails
Problem: Autocmd test fails. Solution: Require white space before the "{" that starts a block.
1 parent e041dde commit 1321257

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/userfunc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ get_function_body(
901901
end = p + STRLEN(p) - 1;
902902
while (end > p && VIM_ISWHITE(*end))
903903
--end;
904-
if (end > p && *end == '{')
904+
if (end > p + 1 && *end == '{' && VIM_ISWHITE(end[-1]))
905905
{
906906
int is_block;
907907

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,8 @@ static char *(features[]) =
755755

756756
static int included_patches[] =
757757
{ /* Add new patch number below this line */
758+
/**/
759+
3273,
758760
/**/
759761
3272,
760762
/**/

0 commit comments

Comments
 (0)