patch 8.2.3297: cannot use all commands inside a {} block
Problem: Cannot use all commands inside a {} block after :command and
:autocmd.
Solution: Do consider \n to separate commands. (closes #8620)
diff --git a/src/evalvars.c b/src/evalvars.c
index dc747f7..721b688 100644
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -812,7 +812,7 @@
list_func_vars(&first);
list_vim_vars(&first);
}
- eap->nextcmd = check_nextcmd(arg);
+ set_nextcmd(eap, arg);
}
else if (expr[0] == '=' && expr[1] == '<' && expr[2] == '<')
{
@@ -1629,7 +1629,7 @@
arg = skipwhite(name_end);
} while (!ends_excmd2(name_end, arg));
- eap->nextcmd = check_nextcmd(arg);
+ set_nextcmd(eap, arg);
}
static int