patch 8.2.0624: Vim9: no check for space before #comment
Problem: Vim9: no check for space before #comment.
Solution: Add space checks. Fix :throw with double quoted string.
diff --git a/src/usercmd.c b/src/usercmd.c
index fc14430..cdc46a1 100644
--- a/src/usercmd.c
+++ b/src/usercmd.c
@@ -1007,7 +1007,7 @@
if (ASCII_ISALPHA(*p))
while (ASCII_ISALNUM(*p))
++p;
- if (!ends_excmd(*p) && !VIM_ISWHITE(*p))
+ if (!ends_excmd2(eap->arg, p) && !VIM_ISWHITE(*p))
{
emsg(_("E182: Invalid command name"));
return;
@@ -1018,7 +1018,7 @@
// If there is nothing after the name, and no attributes were specified,
// we are listing commands
p = skipwhite(end);
- if (!has_attr && ends_excmd(*p))
+ if (!has_attr && ends_excmd2(eap->arg, p))
{
uc_list(name, end - name);
}