Mercurial > vim
comparison src/proto/vim9execute.pro @ 30291:61a688be1899 v9.0.0481
patch 9.0.0481: in :def function all closures in loop get the same variables
Commit: https://github.com/vim/vim/commit/8fa745e7be3a791ac25f93ef0227bbc48ade8a37
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 16 19:04:24 2022 +0100
patch 9.0.0481: in :def function all closures in loop get the same variables
Problem: In a :def function all closures in a loop get the same variables.
Solution: Use a separate list of variables for LOADOUTER and STOREOUTER.
Not copied at end of loop yet.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 16 Sep 2022 20:15:03 +0200 |
parents | 6575d0bf6061 |
children | 5c181bb6c855 |
comparison
equal
deleted
inserted
replaced
30290:e5d24015e8c5 | 30291:61a688be1899 |
---|---|
7 ectx_T *clear_currrent_ectx(void); | 7 ectx_T *clear_currrent_ectx(void); |
8 void restore_current_ectx(ectx_T *ectx); | 8 void restore_current_ectx(ectx_T *ectx); |
9 int add_defer_function(char_u *name, int argcount, typval_T *argvars); | 9 int add_defer_function(char_u *name, int argcount, typval_T *argvars); |
10 char_u *char_from_string(char_u *str, varnumber_T index); | 10 char_u *char_from_string(char_u *str, varnumber_T index); |
11 char_u *string_slice(char_u *str, varnumber_T first, varnumber_T last, int exclusive); | 11 char_u *string_slice(char_u *str, varnumber_T first, varnumber_T last, int exclusive); |
12 int fill_partial_and_closure(partial_T *pt, ufunc_T *ufunc, ectx_T *ectx); | 12 int fill_partial_and_closure(partial_T *pt, ufunc_T *ufunc, short loop_var_idx, short loop_var_count, ectx_T *ectx); |
13 int may_load_script(int sid, int *loaded); | 13 int may_load_script(int sid, int *loaded); |
14 typval_T *lookup_debug_var(char_u *name); | 14 typval_T *lookup_debug_var(char_u *name); |
15 int may_break_in_function(ufunc_T *ufunc); | 15 int may_break_in_function(ufunc_T *ufunc); |
16 int exe_typval_instr(typval_T *tv, typval_T *rettv); | 16 int exe_typval_instr(typval_T *tv, typval_T *rettv); |
17 char_u *exe_substitute_instr(void); | 17 char_u *exe_substitute_instr(void); |