mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user