diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-20 18:19:09 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-20 18:19:09 +0200 |
commit | 0cb5bcf5836de83f7d64fb01d3ce708caacaf66c (patch) | |
tree | e8cb22c78547909952536f9d024e95d8fdcc3369 /src/evalvars.c | |
parent | 845e0ee59430eac07e74b6cb92020e420d17953d (diff) | |
download | vim-git-0cb5bcf5836de83f7d64fb01d3ce708caacaf66c.tar.gz |
patch 8.2.1023: Vim9: redefining a function uses a new index every timev8.2.1023
Problem: Vim9: redefining a function uses a new index every time.
Solution: When redefining a function clear the contents and re-use the
index.
Diffstat (limited to 'src/evalvars.c')
-rw-r--r-- | src/evalvars.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalvars.c b/src/evalvars.c index fa52e96cd..187670a6c 100644 --- a/src/evalvars.c +++ b/src/evalvars.c @@ -2628,7 +2628,7 @@ find_var_ht(char_u *name, char_u **varname) if (*name == 'v') // v: variable return &vimvarht; if (get_current_funccal() != NULL - && get_current_funccal()->func->uf_dfunc_idx == UF_NOT_COMPILED) + && get_current_funccal()->func->uf_def_status == UF_NOT_COMPILED) { // a: and l: are only used in functions defined with ":function" if (*name == 'a') // a: function argument |