diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-20 08:27:10 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-07 08:24:48 +0800 |
commit | 900dd2bdab85b25237cec638265d44c2174154ed (patch) | |
tree | 44fc0d39cdd01d31143679545c0a407a366337ee /src/nvim/option.c | |
parent | 9b9f84bc62a01ed76b9f53119781816bd3375267 (diff) | |
download | rneovim-900dd2bdab85b25237cec638265d44c2174154ed.tar.gz rneovim-900dd2bdab85b25237cec638265d44c2174154ed.tar.bz2 rneovim-900dd2bdab85b25237cec638265d44c2174154ed.zip |
vim-patch:8.2.3665: cannot use a lambda for 'tagfunc'
Problem: Cannot use a lambda for 'tagfunc'.
Solution: Use 'tagfunc' like 'opfunc'. (Yegappan Lakshmanan, closes vim/vim#9204)
https://github.com/vim/vim/commit/19916a8c8920b6a1fd737ffa6d4e363fc7a96319
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 523ae13e52..1eabe8c540 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -78,6 +78,7 @@ #include "nvim/spellsuggest.h" #include "nvim/strings.h" #include "nvim/syntax.h" +#include "nvim/tag.h" #include "nvim/ui.h" #include "nvim/ui_compositor.h" #include "nvim/undo.h" @@ -577,6 +578,7 @@ void free_all_options(void) } } free_operatorfunc_option(); + free_tagfunc_option(); } #endif @@ -4383,6 +4385,7 @@ void buf_copy_options(buf_T *buf, int flags) COPY_OPT_SCTX(buf, BV_OFU); buf->b_p_tfu = xstrdup(p_tfu); COPY_OPT_SCTX(buf, BV_TFU); + buf_set_tfu_callback(buf); buf->b_p_sts = p_sts; COPY_OPT_SCTX(buf, BV_STS); buf->b_p_sts_nopaste = p_sts_nopaste; |