From: Bram Moolenaar Date: Mon, 1 Aug 2016 14:27:23 +0000 (+0200) Subject: patch 7.4.2138 X-Git-Tag: v7.4.2138 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d3d60a7d4b410668dfc427120205ccf88789db4;p=vim patch 7.4.2138 Problem: Test 86 and 87 fail. Solution: Call func_ref() also for regular functions. --- diff --git a/src/if_py_both.h b/src/if_py_both.h index 4f916b797..35ad5d03c 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -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; diff --git a/src/version.c b/src/version.c index 474b3b542..f1eb1fff3 100644 --- a/src/version.c +++ b/src/version.c @@ -763,6 +763,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2138, /**/ 2137, /**/