diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-10-17 14:13:09 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-17 14:13:09 +0100 |
commit | f4d8b76d304dabc39c06d2344cd4c7b28484811b (patch) | |
tree | 56f98aadab44534d6529e802c00bbff8adbf0969 /src/optiondefs.h | |
parent | 9d4b8caf9eddb2db09395587c621309f4513befa (diff) | |
download | vim-git-f4d8b76d304dabc39c06d2344cd4c7b28484811b.tar.gz |
patch 8.2.3528: 'thesaurus' and 'thesaurusfunc' do not have the same scopev8.2.3528
Problem: 'thesaurus' and 'thesaurusfunc' do not have the same scope.
Solution: Make 'thesaurusfunc' global-local.
Diffstat (limited to 'src/optiondefs.h')
-rw-r--r-- | src/optiondefs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/optiondefs.h b/src/optiondefs.h index 042f05551..d85c23330 100644 --- a/src/optiondefs.h +++ b/src/optiondefs.h @@ -141,7 +141,7 @@ # define PV_TFU OPT_BUF(BV_TFU) #endif #ifdef FEAT_COMPL_FUNC -# define PV_THSFU OPT_BUF(BV_THSFU) +# define PV_TSRFU OPT_BOTH(OPT_BUF(BV_TSRFU)) #endif #define PV_TAGS OPT_BOTH(OPT_BUF(BV_TAGS)) #define PV_TC OPT_BOTH(OPT_BUF(BV_TC)) @@ -2634,7 +2634,7 @@ static struct vimoption options[] = {(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 *)&p_tsrfu, PV_TSRFU, {(char_u *)"", (char_u *)0L} #else (char_u *)NULL, PV_NONE, |