Skip to content

Commit 2d3d60a

Browse files
committed
patch 7.4.2138
Problem: Test 86 and 87 fail. Solution: Call func_ref() also for regular functions.
1 parent 437bafe commit 2d3d60a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/if_py_both.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2863,7 +2863,6 @@ FunctionNew(PyTypeObject *subtype, char_u *name, int argc, typval_T *argv,
28632863
return NULL;
28642864
}
28652865
self->name = vim_strsave(name);
2866-
func_ref(self->name);
28672866
}
28682867
else
28692868
if ((self->name = get_expanded_name(name,
@@ -2875,6 +2874,7 @@ FunctionNew(PyTypeObject *subtype, char_u *name, int argc, typval_T *argv,
28752874
return NULL;
28762875
}
28772876

2877+
func_ref(self->name);
28782878
self->argc = argc;
28792879
self->argv = argv;
28802880
self->self = selfdict;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ static char *(features[]) =
763763

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2138,
766768
/**/
767769
2137,
768770
/**/

0 commit comments

Comments
 (0)