# HG changeset patch # User Christian Brabandt # Date 1470061806 -7200 # Node ID 4a4a71d67131d7395f02a2f0705887a293b55183 # Parent 0d9cf1226b6ab38c527cd1e96f0e1896fe8b4125 commit https://github.com/vim/vim/commit/2d3d60a7d4b410668dfc427120205ccf88789db4 Author: Bram Moolenaar Date: Mon Aug 1 16:27:23 2016 +0200 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 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -2863,7 +2863,6 @@ FunctionNew(PyTypeObject *subtype, char_ 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_ 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 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2138, +/**/ 2137, /**/ 2136,