Mercurial > vim
view src/proto/if_python.pro @ 30299:5c181bb6c855
patch 9.0.0485: in :def function all closures in loop get the same variables
Commit: https://github.com/vim/vim/commit/0cdfb7ce462393595b0308dcabf343e82f05319d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 17 15:44:52 2022 +0100
patch 9.0.0485: 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: Make a copy of loop variables used in a closure.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 17 Sep 2022 16:45:04 +0200 |
parents | 21b0a39d13ed |
children | a0b0c1e07064 |
line wrap: on
line source
/* if_python.c */ int python_enabled(int verbose); void python_end(void); int python_loaded(void); void ex_python(exarg_T *eap); void ex_pyfile(exarg_T *eap); void ex_pydo(exarg_T *eap); void python_buffer_free(buf_T *buf); void python_window_free(win_T *win); void python_tabpage_free(tabpage_T *tab); void do_pyeval(char_u *str, typval_T *rettv); int set_ref_in_python(int copyID); /* vim: set ft=c : */