diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-12-12 16:26:44 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-12 16:26:44 +0000 |
commit | 6ae8fae8696623b527c7fb22567f6a3705b2f0dd (patch) | |
tree | 5013ad6590516571ae06f992906c4270d7f03b45 /src/proto/insexpand.pro | |
parent | 6e371ecb27227ff8fedd8561d0f3880a17576848 (diff) |
patch 8.2.3788: lambda for option that is a function may be freedv8.2.3788
Problem: Lambda for option that is a function may be garbage collected.
Solution: Set a reference in the funcref. (Yegappan Lakshmanan,
closes #9330)
Diffstat (limited to 'src/proto/insexpand.pro')
-rw-r--r-- | src/proto/insexpand.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/insexpand.pro b/src/proto/insexpand.pro index d455a98fd7..6d975570d6 100644 --- a/src/proto/insexpand.pro +++ b/src/proto/insexpand.pro @@ -44,6 +44,7 @@ void set_buflocal_cfu_callback(buf_T *buf); int set_omnifunc_option(void); void set_buflocal_ofu_callback(buf_T *buf); int set_thesaurusfunc_option(void); +int set_ref_in_insexpand_funcs(int copyID); callback_T *get_insert_callback(int type); void f_complete(typval_T *argvars, typval_T *rettv); void f_complete_add(typval_T *argvars, typval_T *rettv); |