comparison 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
comparison
equal deleted inserted replaced
25973:3b34837f4538 25974:416237f1de22
138 #define PV_SW OPT_BUF(BV_SW) 138 #define PV_SW OPT_BUF(BV_SW)
139 #define PV_SWF OPT_BUF(BV_SWF) 139 #define PV_SWF OPT_BUF(BV_SWF)
140 #ifdef FEAT_EVAL 140 #ifdef FEAT_EVAL
141 # define PV_TFU OPT_BUF(BV_TFU) 141 # define PV_TFU OPT_BUF(BV_TFU)
142 #endif 142 #endif
143 #ifdef FEAT_COMPL_FUNC
144 # define PV_THSFU OPT_BUF(BV_THSFU)
145 #endif
143 #define PV_TAGS OPT_BOTH(OPT_BUF(BV_TAGS)) 146 #define PV_TAGS OPT_BOTH(OPT_BUF(BV_TAGS))
144 #define PV_TC OPT_BOTH(OPT_BUF(BV_TC)) 147 #define PV_TC OPT_BOTH(OPT_BUF(BV_TC))
145 #define PV_TS OPT_BUF(BV_TS) 148 #define PV_TS OPT_BUF(BV_TS)
146 #define PV_TW OPT_BUF(BV_TW) 149 #define PV_TW OPT_BUF(BV_TW)
147 #define PV_TX OPT_BUF(BV_TX) 150 #define PV_TX OPT_BUF(BV_TX)
2614 (char_u *)&p_tw, PV_TW, 2617 (char_u *)&p_tw, PV_TW,
2615 {(char_u *)0L, (char_u *)0L} SCTX_INIT}, 2618 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2616 {"thesaurus", "tsr", P_STRING|P_EXPAND|P_VI_DEF|P_ONECOMMA|P_NODUP|P_NDNAME, 2619 {"thesaurus", "tsr", P_STRING|P_EXPAND|P_VI_DEF|P_ONECOMMA|P_NODUP|P_NDNAME,
2617 (char_u *)&p_tsr, PV_TSR, 2620 (char_u *)&p_tsr, PV_TSR,
2618 {(char_u *)"", (char_u *)0L} SCTX_INIT}, 2621 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2622 {"thesaurusfunc", "tsrfu", P_STRING|P_ALLOCED|P_VI_DEF|P_SECURE,
2623 #ifdef FEAT_COMPL_FUNC
2624 (char_u *)&p_thsfu, PV_THSFU,
2625 {(char_u *)"", (char_u *)0L}
2626 #else
2627 (char_u *)NULL, PV_NONE,
2628 {(char_u *)0L, (char_u *)0L}
2629 #endif
2630 SCTX_INIT},
2619 {"tildeop", "top", P_BOOL|P_VI_DEF|P_VIM, 2631 {"tildeop", "top", P_BOOL|P_VI_DEF|P_VIM,
2620 (char_u *)&p_to, PV_NONE, 2632 (char_u *)&p_to, PV_NONE,
2621 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT}, 2633 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2622 {"timeout", "to", P_BOOL|P_VI_DEF, 2634 {"timeout", "to", P_BOOL|P_VI_DEF,
2623 (char_u *)&p_timeout, PV_NONE, 2635 (char_u *)&p_timeout, PV_NONE,