Mercurial > vim
comparison src/proto/userfunc.pro @ 27807:292a6bd86c30 v8.2.4429
patch 8.2.4429: using script-local function from the wrong script
Commit: https://github.com/vim/vim/commit/c2f17f7e64bb1bf872dbc6f3b8f0d8751e275287
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 21 13:13:50 2022 +0000
patch 8.2.4429: using script-local function from the wrong script
Problem: Using script-local function from the wrong script when using a
partial. (Yegappan Lakshmanan)
Solution: Include the script ID in the partial name.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 21 Feb 2022 14:15:04 +0100 |
parents | 5c4ab8d4472c |
children | 4b322951ebac |
comparison
equal
deleted
inserted
replaced
27806:c8db1c5f9303 | 27807:292a6bd86c30 |
---|---|
36 int call_func(char_u *funcname, int len, typval_T *rettv, int argcount_in, typval_T *argvars_in, funcexe_T *funcexe); | 36 int call_func(char_u *funcname, int len, typval_T *rettv, int argcount_in, typval_T *argvars_in, funcexe_T *funcexe); |
37 char_u *printable_func_name(ufunc_T *fp); | 37 char_u *printable_func_name(ufunc_T *fp); |
38 char_u *trans_function_name(char_u **pp, int *is_global, int skip, int flags, funcdict_T *fdp, partial_T **partial, type_T **type); | 38 char_u *trans_function_name(char_u **pp, int *is_global, int skip, int flags, funcdict_T *fdp, partial_T **partial, type_T **type); |
39 char_u *untrans_function_name(char_u *name); | 39 char_u *untrans_function_name(char_u *name); |
40 char_u *get_scriptlocal_funcname(char_u *funcname); | 40 char_u *get_scriptlocal_funcname(char_u *funcname); |
41 char_u *alloc_printable_func_name(char_u *fname); | |
41 char_u *save_function_name(char_u **name, int *is_global, int skip, int flags, funcdict_T *fudi); | 42 char_u *save_function_name(char_u **name, int *is_global, int skip, int flags, funcdict_T *fudi); |
42 void list_functions(regmatch_T *regmatch); | 43 void list_functions(regmatch_T *regmatch); |
43 ufunc_T *define_function(exarg_T *eap, char_u *name_arg, garray_T *lines_to_free); | 44 ufunc_T *define_function(exarg_T *eap, char_u *name_arg, garray_T *lines_to_free); |
44 void ex_function(exarg_T *eap); | 45 void ex_function(exarg_T *eap); |
45 void ex_defcompile(exarg_T *eap); | 46 void ex_defcompile(exarg_T *eap); |