0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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.
This commit is contained in:
Bram Moolenaar
2016-05-24 15:44:17 +02:00
parent 991dea3ab1
commit 1d429610bf
5 changed files with 86 additions and 12 deletions

View File

@@ -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" */