]> granicus.if.org Git - vim/commitdiff
patch 7.4.2138 v7.4.2138
authorBram Moolenaar <Bram@vim.org>
Mon, 1 Aug 2016 14:27:23 +0000 (16:27 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 1 Aug 2016 14:27:23 +0000 (16:27 +0200)
Problem:    Test 86 and 87 fail.
Solution:   Call func_ref() also for regular functions.

src/if_py_both.h
src/version.c

index 4f916b79757dc8d8cb291c6efc491d531c60bb6d..35ad5d03c6034e9e362f077901dcddf90885e603 100644 (file)
@@ -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;
index 474b3b542c4cbccd999648fa4c56dbaf56e69c6b..f1eb1fff319dc948c67cf08a7528ba4d8456454d 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2138,
 /**/
     2137,
 /**/