0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.3273: autocmd test fails

Problem:    Autocmd test fails.
Solution:   Require white space before the "{" that starts a block.
This commit is contained in:
Bram Moolenaar 2021-08-01 22:01:30 +02:00
parent e041dde7bb
commit 1321257317
2 changed files with 3 additions and 1 deletions

View File

@ -901,7 +901,7 @@ get_function_body(
end = p + STRLEN(p) - 1; end = p + STRLEN(p) - 1;
while (end > p && VIM_ISWHITE(*end)) while (end > p && VIM_ISWHITE(*end))
--end; --end;
if (end > p && *end == '{') if (end > p + 1 && *end == '{' && VIM_ISWHITE(end[-1]))
{ {
int is_block; int is_block;

View File

@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
3273,
/**/ /**/
3272, 3272,
/**/ /**/