Permalink
Browse files

patch 7.4.2138

Problem:    Test 86 and 87 fail.
Solution:   Call func_ref() also for regular functions.
  • Loading branch information...
1 parent 437bafe commit 2d3d60a7d4b410668dfc427120205ccf88789db4 @brammool brammool committed Aug 1, 2016
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/if_py_both.h
  2. +2 −0 src/version.c
View
@@ -2863,7 +2863,6 @@ FunctionNew(PyTypeObject *subtype, char_u *name, int argc, typval_T *argv,
return NULL;
}
self->name = vim_strsave(name);
- func_ref(self->name);
}
else
if ((self->name = get_expanded_name(name,
@@ -2875,6 +2874,7 @@ FunctionNew(PyTypeObject *subtype, char_u *name, int argc, typval_T *argv,
return NULL;
}
+ func_ref(self->name);
self->argc = argc;
self->argv = argv;
self->self = selfdict;
View
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2138,
+/**/
2137,
/**/
2136,

0 comments on commit 2d3d60a

Please sign in to comment.