Mercurial > vim
diff src/optiondefs.h @ 25974:416237f1de22 v8.2.3520
patch 8.2.3520: cannot define a function for thesaurus completion
Commit: https://github.com/vim/vim/commit/160e994d768d03a3c826b58115cde94df8fce607
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sat Oct 16 15:41:29 2021 +0100
patch 8.2.3520: cannot define a function for thesaurus completion
Problem: Cannot define a function for thesaurus completion.
Solution: Add 'thesaurusfunc'. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/8987,
closes 8950)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 16 Oct 2021 16:45:04 +0200 |
parents | ac88cd21ae88 |
children | aade8ef975d5 |
line wrap: on
line diff
--- a/src/optiondefs.h +++ b/src/optiondefs.h @@ -140,6 +140,9 @@ #ifdef FEAT_EVAL # define PV_TFU OPT_BUF(BV_TFU) #endif +#ifdef FEAT_COMPL_FUNC +# define PV_THSFU OPT_BUF(BV_THSFU) +#endif #define PV_TAGS OPT_BOTH(OPT_BUF(BV_TAGS)) #define PV_TC OPT_BOTH(OPT_BUF(BV_TC)) #define PV_TS OPT_BUF(BV_TS) @@ -2616,6 +2619,15 @@ static struct vimoption options[] = {"thesaurus", "tsr", P_STRING|P_EXPAND|P_VI_DEF|P_ONECOMMA|P_NODUP|P_NDNAME, (char_u *)&p_tsr, PV_TSR, {(char_u *)"", (char_u *)0L} SCTX_INIT}, + {"thesaurusfunc", "tsrfu", P_STRING|P_ALLOCED|P_VI_DEF|P_SECURE, +#ifdef FEAT_COMPL_FUNC + (char_u *)&p_thsfu, PV_THSFU, + {(char_u *)"", (char_u *)0L} +#else + (char_u *)NULL, PV_NONE, + {(char_u *)0L, (char_u *)0L} +#endif + SCTX_INIT}, {"tildeop", "top", P_BOOL|P_VI_DEF|P_VIM, (char_u *)&p_to, PV_NONE, {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},