forked from aniani/vim
patch 8.2.1980: Vim9: some tests are not done at the script level
Problem: Vim9: some tests are not done at the script level.
Solution: Use CheckDefAndScriptSuccess() in more places. Fix uncovered
problems.
This commit is contained in:
@@ -1264,7 +1264,7 @@ eval_list(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int do_error)
|
||||
had_comma = **arg == ',';
|
||||
if (had_comma)
|
||||
{
|
||||
if (vim9script && !IS_WHITE_OR_NUL((*arg)[1]))
|
||||
if (vim9script && !IS_WHITE_OR_NUL((*arg)[1]) && (*arg)[1] != ']')
|
||||
{
|
||||
semsg(_(e_white_space_required_after_str), ",");
|
||||
goto failret;
|
||||
|
||||
Reference in New Issue
Block a user