summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2021-11-24 16:32:55 +0000
committerBram Moolenaar <Bram@vim.org>2021-11-24 16:32:55 +0000
commit19916a8c8920b6a1fd737ffa6d4e363fc7a96319 (patch)
treec91095739b0714cb9edee11c8d3cdea88d4dbd77 /src/option.c
parente413ea04b716effb28eb49dbc98ad3f9f761545a (diff)
downloadvim-git-19916a8c8920b6a1fd737ffa6d4e363fc7a96319.tar.gz
patch 8.2.3665: cannot use a lambda for 'tagfunc'v8.2.3665
Problem: Cannot use a lambda for 'tagfunc'. Solution: Use 'tagfunc' like 'opfunc'. (Yegappan Lakshmanan, closes #9204)
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c
index b807b9b6c..4422634e2 100644
--- a/src/option.c
+++ b/src/option.c
@@ -810,6 +810,7 @@ free_all_options(void)
clear_string_option((char_u **)options[i].var);
}
free_operatorfunc_option();
+ free_tagfunc_option();
}
#endif
@@ -5956,6 +5957,7 @@ buf_copy_options(buf_T *buf, int flags)
#ifdef FEAT_EVAL
buf->b_p_tfu = vim_strsave(p_tfu);
COPY_OPT_SCTX(buf, BV_TFU);
+ buf_set_tfu_callback(buf);
#endif
buf->b_p_sts = p_sts;
COPY_OPT_SCTX(buf, BV_STS);