0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -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;
while (end > p && VIM_ISWHITE(*end))
--end;
if (end > p && *end == '{')
if (end > p + 1 && *end == '{' && VIM_ISWHITE(end[-1]))
{
int is_block;