aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorMichael Ennen <mike.ennen@gmail.com>2016-10-26 12:26:06 -0700
committerJames McCoy <jamessan@jamessan.com>2016-12-12 10:17:35 -0500
commit2c1b4c7f3c13b61dab70d6ad3507b90c7a60e4aa (patch)
tree224b21392bff4cd256aff898176bce22cd9898b0 /src/nvim/eval.c
parent529482d6844474f6eab9feed5162008b652fd931 (diff)
downloadrneovim-2c1b4c7f3c13b61dab70d6ad3507b90c7a60e4aa.tar.gz
rneovim-2c1b4c7f3c13b61dab70d6ad3507b90c7a60e4aa.tar.bz2
rneovim-2c1b4c7f3c13b61dab70d6ad3507b90c7a60e4aa.zip
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
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c1
1 files changed, 1 insertions, 0 deletions
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;