diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-10-16 15:41:29 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-16 15:41:29 +0100 |
commit | 160e994d768d03a3c826b58115cde94df8fce607 (patch) | |
tree | 38f6ec253633b656db1be92790c26fc71eb72eee /src/option.c | |
parent | 2286304cdbba53ceb52b3ba2ba4a521b0a2f8d0f (diff) |
patch 8.2.3520: cannot define a function for thesaurus completionv8.2.3520
Problem: Cannot define a function for thesaurus completion.
Solution: Add 'thesaurusfunc'. (Yegappan Lakshmanan, closes #8987,
closes 8950)
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c index fe5ff4367c..385126eb3d 100644 --- a/src/option.c +++ b/src/option.c @@ -5433,6 +5433,7 @@ get_varp(struct vimoption *p) #ifdef FEAT_COMPL_FUNC case PV_CFU: return (char_u *)&(curbuf->b_p_cfu); case PV_OFU: return (char_u *)&(curbuf->b_p_ofu); + case PV_THSFU: return (char_u *)&(curbuf->b_p_thsfu); #endif #ifdef FEAT_EVAL case PV_TFU: return (char_u *)&(curbuf->b_p_tfu); @@ -5935,6 +5936,8 @@ buf_copy_options(buf_T *buf, int flags) COPY_OPT_SCTX(buf, BV_CFU); buf->b_p_ofu = vim_strsave(p_ofu); COPY_OPT_SCTX(buf, BV_OFU); + buf->b_p_thsfu = vim_strsave(p_thsfu); + COPY_OPT_SCTX(buf, BV_THSFU); #endif #ifdef FEAT_EVAL buf->b_p_tfu = vim_strsave(p_tfu); |