From 2c1b4c7f3c13b61dab70d6ad3507b90c7a60e4aa Mon Sep 17 00:00:00 2001 From: Michael Ennen Date: Wed, 26 Oct 2016 12:26:06 -0700 Subject: vim-patch:7.4.1580 Problem: Crash when using function reference. (Luchr) Solution: Set initial refcount. (Ken Takata) https://github.com/vim/vim/commit/7a5c46a9df7ef01a4f6a620861c35400d5ad28d9 --- src/nvim/eval.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/eval.c') diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 57c1c8e210..fc0b2ee23d 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -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; -- cgit