mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.0.0499: in :def function list created after const is locked
Problem: In :def function list created after const is locked. Solution: Reset v_lock. (closes #11154)
This commit is contained in:
@@ -200,6 +200,7 @@ exe_newlist(int count, ectx_T *ectx)
|
||||
tv = STACK_TV_BOT(-1);
|
||||
tv->v_type = VAR_LIST;
|
||||
tv->vval.v_list = list;
|
||||
tv->v_lock = 0;
|
||||
if (list != NULL)
|
||||
++list->lv_refcount;
|
||||
return OK;
|
||||
|
Reference in New Issue
Block a user