1
0
forked from aniani/vim

patch 8.2.2071: Vim9: list assign doesn't except empty remainder list

Problem:    Vim9: list assign doesn't except empty remainder list.
Solution:   Recognize list assignment with ";".
This commit is contained in:
Bram Moolenaar
2020-11-30 21:12:19 +01:00
parent f0068c5154
commit da7c20c953
3 changed files with 33 additions and 21 deletions

View File

@@ -3356,7 +3356,14 @@ find_ex_command(
if (*eap->cmd == '[')
{
p = to_name_const_end(eap->cmd);
if (p == eap->cmd || *skipwhite(p) != '=')
if (p == eap->cmd && *p == '[')
{
int count = 0;
int semicolon = FALSE;
p = skip_var_list(eap->cmd, TRUE, &count, &semicolon, TRUE);
}
if (p == NULL || p == eap->cmd || *skipwhite(p) != '=')
{
eap->cmdidx = CMD_eval;
return eap->cmd;