commit | 566badc76ba7c0fbdc75e62f79486182304fc7cc | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Sep 18 13:46:08 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Sep 18 13:46:08 2022 +0100 |
tree | fc104613a2535e1a23ca548390f6c7ab2a568fe4 | |
parent | 747f110420a0b0f4c2e40e00e8456f1e45b6f0de [diff] [blame] |
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)
diff --git a/src/vim9execute.c b/src/vim9execute.c index 22dfaaa..c2a3310 100644 --- a/src/vim9execute.c +++ b/src/vim9execute.c
@@ -200,6 +200,7 @@ 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;