Mercurial > vim
comparison src/proto/ops.pro @ 26518:13ba00ef7687 v8.2.3788
patch 8.2.3788: lambda for option that is a function may be freed
Commit: https://github.com/vim/vim/commit/6ae8fae8696623b527c7fb22567f6a3705b2f0dd
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sun Dec 12 16:26:44 2021 +0000
patch 8.2.3788: lambda for option that is a function may be freed
Problem: Lambda for option that is a function may be garbage collected.
Solution: Set a reference in the funcref. (Yegappan Lakshmanan,
closes #9330)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 12 Dec 2021 17:30:04 +0100 |
parents | 6b4f017d7005 |
children | 8b15e4161605 |
comparison
equal
deleted
inserted
replaced
26517:7dfc4c45f698 | 26518:13ba00ef7687 |
---|---|
17 void op_addsub(oparg_T *oap, linenr_T Prenum1, int g_cmd); | 17 void op_addsub(oparg_T *oap, linenr_T Prenum1, int g_cmd); |
18 void clear_oparg(oparg_T *oap); | 18 void clear_oparg(oparg_T *oap); |
19 void cursor_pos_info(dict_T *dict); | 19 void cursor_pos_info(dict_T *dict); |
20 int set_operatorfunc_option(void); | 20 int set_operatorfunc_option(void); |
21 void free_operatorfunc_option(void); | 21 void free_operatorfunc_option(void); |
22 int set_ref_in_opfunc(int copyID); | |
22 void do_pending_operator(cmdarg_T *cap, int old_col, int gui_yank); | 23 void do_pending_operator(cmdarg_T *cap, int old_col, int gui_yank); |
23 /* vim: set ft=c : */ | 24 /* vim: set ft=c : */ |