From 0cb5bcf5836de83f7d64fb01d3ce708caacaf66c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 20 Jun 2020 18:19:09 +0200 Subject: patch 8.2.1023: Vim9: redefining a function uses a new index every time Problem: Vim9: redefining a function uses a new index every time. Solution: When redefining a function clear the contents and re-use the index. --- src/proto/vim9compile.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/proto') diff --git a/src/proto/vim9compile.pro b/src/proto/vim9compile.pro index 41c688721..0db5fc7fc 100644 --- a/src/proto/vim9compile.pro +++ b/src/proto/vim9compile.pro @@ -14,6 +14,6 @@ int check_vim9_unlet(char_u *name); int compile_def_function(ufunc_T *ufunc, int set_return_type, cctx_T *outer_cctx); void set_function_type(ufunc_T *ufunc); void delete_instr(isn_T *isn); -void delete_def_function(ufunc_T *ufunc); +void clear_def_function(ufunc_T *ufunc); void free_def_functions(void); /* vim: set ft=c : */ -- cgit v1.2.1