mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 7.4.2138
Problem: Test 86 and 87 fail. Solution: Call func_ref() also for regular functions.
This commit is contained in:
@@ -2863,7 +2863,6 @@ FunctionNew(PyTypeObject *subtype, char_u *name, int argc, typval_T *argv,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
self->name = vim_strsave(name);
|
self->name = vim_strsave(name);
|
||||||
func_ref(self->name);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if ((self->name = get_expanded_name(name,
|
if ((self->name = get_expanded_name(name,
|
||||||
@@ -2875,6 +2874,7 @@ FunctionNew(PyTypeObject *subtype, char_u *name, int argc, typval_T *argv,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func_ref(self->name);
|
||||||
self->argc = argc;
|
self->argc = argc;
|
||||||
self->argv = argv;
|
self->argv = argv;
|
||||||
self->self = selfdict;
|
self->self = selfdict;
|
||||||
|
@@ -763,6 +763,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2138,
|
||||||
/**/
|
/**/
|
||||||
2137,
|
2137,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user