changeset 25473:9a4cb96c9550 v8.2.3273

patch 8.2.3273: autocmd test fails Commit: https://github.com/vim/vim/commit/1321257317b7d28228a6a9a0d612f81f70290b4c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 1 22:01:30 2021 +0200 patch 8.2.3273: autocmd test fails Problem: Autocmd test fails. Solution: Require white space before the "{" that starts a block.
author Bram Moolenaar <Bram@vim.org>
date Sun, 01 Aug 2021 22:15:03 +0200
parents 5bf9ba95400f
children c79b2530406a
files src/userfunc.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 
--- 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,