aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2021-10-16 18:40:57 +0200
committerMatěj Cepl <mcepl@cepl.eu>2021-10-23 22:30:50 +0200
commitcbec765915a8a76e86ac79dde8eeae663b019882 (patch)
tree9d626c255ef9e827d3169672a8127995e8289da1 /src/nvim/option.c
parentaa4f0879e35c43b186cf51c50f28847dd2df256c (diff)
downloadrneovim-cbec765915a8a76e86ac79dde8eeae663b019882.tar.gz
rneovim-cbec765915a8a76e86ac79dde8eeae663b019882.tar.bz2
rneovim-cbec765915a8a76e86ac79dde8eeae663b019882.zip
vim-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 vim/vim#8987, closes 8950) https://github.com/vim/vim/commit/160e994d768d03a3c826b58115cde94df8fce607
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index a8b86ec0a0..b6b1c4b8a2 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -139,6 +139,7 @@ static char_u *p_cpt;
static char_u *p_cfu;
static char_u *p_ofu;
static char_u *p_tfu;
+static char_u *p_thsfu;
static int p_eol;
static int p_fixeol;
static int p_et;
@@ -5915,6 +5916,8 @@ static char_u *get_varp(vimoption_T *p)
return (char_u *)&(curbuf->b_p_sw);
case PV_TFU:
return (char_u *)&(curbuf->b_p_tfu);
+ case PV_THSFU:
+ return (char_u *)&(curbuf->b_p_thsfu);
case PV_TS:
return (char_u *)&(curbuf->b_p_ts);
case PV_TW:
@@ -6184,6 +6187,7 @@ void buf_copy_options(buf_T *buf, int flags)
#endif
buf->b_p_cfu = vim_strsave(p_cfu);
buf->b_p_ofu = vim_strsave(p_ofu);
+ buf->b_p_thsfu = vim_strsave(p_thsfu);
buf->b_p_tfu = vim_strsave(p_tfu);
buf->b_p_sts = p_sts;
buf->b_p_sts_nopaste = p_sts_nopaste;