mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.2549: crash after using "g:" in a for loop
Problem: Crash after using "g:" in a for loop. Solution: Increment the reference count. (closes #7892)
This commit is contained in:
@@ -1771,6 +1771,7 @@ call_def_function(
|
||||
tv->v_type = VAR_DICT;
|
||||
tv->v_lock = 0;
|
||||
tv->vval.v_dict = d;
|
||||
++d->dv_refcount;
|
||||
++ectx.ec_stack.ga_len;
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user