mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44: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:
@@ -3440,6 +3440,17 @@ exec_instructions(ectx_T *ectx)
|
||||
}
|
||||
break;
|
||||
|
||||
// create a partial with NULL value
|
||||
case ISN_NEWPARTIAL:
|
||||
if (GA_GROW_FAILS(&ectx->ec_stack, 1))
|
||||
goto theend;
|
||||
++ectx->ec_stack.ga_len;
|
||||
tv = STACK_TV_BOT(-1);
|
||||
tv->v_type = VAR_PARTIAL;
|
||||
tv->v_lock = 0;
|
||||
tv->vval.v_partial = NULL;
|
||||
break;
|
||||
|
||||
// call a :def function
|
||||
case ISN_DCALL:
|
||||
SOURCING_LNUM = iptr->isn_lnum;
|
||||
@@ -5720,6 +5731,9 @@ list_instructions(char *pfx, isn_T *instr, int instr_count, ufunc_T *ufunc)
|
||||
smsg("%s%4d NEWDICT size %lld", pfx, current,
|
||||
(varnumber_T)(iptr->isn_arg.number));
|
||||
break;
|
||||
case ISN_NEWPARTIAL:
|
||||
smsg("%s%4d NEWPARTIAL", pfx, current);
|
||||
break;
|
||||
|
||||
// function call
|
||||
case ISN_BCALL:
|
||||
|
Reference in New Issue
Block a user