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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user