1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2020-04-23 17:07:30 +02:00
parent f7b398c6a9
commit a72cfb80cd
5 changed files with 94 additions and 13 deletions

View File

@@ -1007,7 +1007,7 @@ ex_command(exarg_T *eap)
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 @@ ex_command(exarg_T *eap)
// 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);
}