1
0
forked from aniani/vim

patch 8.2.4526: Vim9: cannot set variables to a null value

Problem:    Vim9: cannot set variables to a null value.
Solution:   Add null_list, null_job, etc.
This commit is contained in:
Bram Moolenaar
2022-03-08 13:18:55 +00:00
parent 08238045e7
commit 8acb9cc620
16 changed files with 346 additions and 51 deletions

View File

@@ -999,6 +999,11 @@ ex_let_vars(
listitem_T *item;
typval_T ltv;
if (tv->v_type == VAR_VOID)
{
emsg(_(e_cannot_use_void_value));
return FAIL;
}
if (*arg != '[')
{
// ":let var = expr" or ":for var in list"