diff options
Diffstat (limited to 'src/list.c')
-rw-r--r-- | src/list.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/list.c b/src/list.c index 5c2f60ef79..14a31bcfb7 100644 --- a/src/list.c +++ b/src/list.c @@ -1194,6 +1194,9 @@ eval_list(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int do_error) else clear_tv(&tv); } + // Legacy Vim script allowed a space before the comma. + if (!vim9script) + *arg = skipwhite(*arg); // the comma must come after the value had_comma = **arg == ','; |