1
0
forked from aniani/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 #9204)
This commit is contained in:
Yegappan Lakshmanan
2021-11-24 16:32:55 +00:00
committed by Bram Moolenaar
parent e413ea04b7
commit 19916a8c89
9 changed files with 125 additions and 6 deletions

View File

@@ -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);