summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-05-24 15:44:17 +0200
committerBram Moolenaar <Bram@vim.org>2016-05-24 15:44:17 +0200
commit1d429610bf9e99a6252be8abbc910d6667e4d1da (patch)
tree348de7a5f9706f94ebcf03796263d5c743d6d0e3 /src/structs.h
parent991dea3ab185fb35e577ab0bdfd443cd4b43ccc6 (diff)
downloadvim-git-1d429610bf9e99a6252be8abbc910d6667e4d1da.tar.gz
patch 7.4.1836v7.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.
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index 24d819bf5..12a8a4387 100644
--- 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" */