mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
vim-patch:7.4.1580
Problem: Crash when using function reference. (Luchr)
Solution: Set initial refcount. (Ken Takata)
7a5c46a9df
This commit is contained in:

committed by
James McCoy

parent
529482d684
commit
2c1b4c7f3c
@@ -18340,6 +18340,7 @@ handle_subscript (
|
||||
|
||||
// Turn "dict.Func" into a partial for "Func" with "dict".
|
||||
if (pt != NULL) {
|
||||
pt->pt_refcount = 1;
|
||||
pt->pt_dict = selfdict;
|
||||
selfdict = NULL;
|
||||
pt->pt_name = rettv->vval.v_string;
|
||||
|
Reference in New Issue
Block a user