Mercurial > vim
diff src/structs.h @ 9104:2242a5766417 v7.4.1836
commit https://github.com/vim/vim/commit/1d429610bf9e99a6252be8abbc910d6667e4d1da
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 24 15:44:17 2016 +0200
patch 7.4.1836
Problem: When using a partial on a dictionary it always gets bound to that
dictionary.
Solution: Make a difference between binding a function to a dictionary
explicitly or automatically.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 May 2016 15:45:06 +0200 |
parents | d362e6df1deb |
children | 053bc64433ec |
line wrap: on
line diff
--- a/src/structs.h +++ b/src/structs.h @@ -1261,6 +1261,8 @@ struct partial_S { int pt_refcount; /* reference count */ char_u *pt_name; /* function name */ + int pt_auto; /* when TRUE the partial was created for using + dict.member in handle_subscript() */ int pt_argc; /* number of arguments */ typval_T *pt_argv; /* arguments in allocated array */ dict_T *pt_dict; /* dict for "self" */