aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2021-10-17 16:24:34 +0200
committerMatěj Cepl <mcepl@cepl.eu>2021-10-24 08:57:30 +0200
commitb092171e7c632a2a6c8841056302ae281d993168 (patch)
tree4b4e27095da6264ba45275f8fd812ff3cdc22edb /src/nvim/edit.c
parent36ff5976b9fee823892a1abcfb484cf3f162bb3b (diff)
downloadrneovim-b092171e7c632a2a6c8841056302ae281d993168.tar.gz
rneovim-b092171e7c632a2a6c8841056302ae281d993168.tar.bz2
rneovim-b092171e7c632a2a6c8841056302ae281d993168.zip
vim-patch:8.2.3525: option variable name does not match option name
Problem: Option variable name does not match option name. (Christ van Willigen) Solution: Rename the variable. https://github.com/vim/vim/commit/d4c4bfa0078a959ff90ef30288fd31d9d38f23d7
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 29ce9ae3ec..2d7b1437f7 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -2071,7 +2071,7 @@ static bool check_compl_option(bool dict_opt)
{
if (dict_opt
? (*curbuf->b_p_dict == NUL && *p_dict == NUL && !curwin->w_p_spell)
- : (*curbuf->b_p_tsr == NUL && *p_tsr == NUL && *curbuf->b_p_thsfu == NUL)) {
+ : (*curbuf->b_p_tsr == NUL && *p_tsr == NUL && *curbuf->b_p_tsrfu == NUL)) {
ctrl_x_mode = CTRL_X_NORMAL;
edit_submode = NULL;
msg_attr((dict_opt
@@ -3932,7 +3932,7 @@ static char_u *get_complete_funcname(int type) {
case CTRL_X_OMNI:
return curbuf->b_p_ofu;
case CTRL_X_THESAURUS:
- return curbuf->b_p_thsfu;
+ return curbuf->b_p_tsrfu;
default:
return (char_u *)"";
}
@@ -4117,8 +4117,8 @@ int ins_compl_add_tv(typval_T *const tv, const Direction dir, bool fast)
static int thesaurus_func_complete(int type)
{
return (type == CTRL_X_THESAURUS
- && curbuf->b_p_thsfu != NULL
- && *curbuf->b_p_thsfu != NUL);
+ && curbuf->b_p_tsrfu != NULL
+ && *curbuf->b_p_tsrfu != NUL);
}
// Get the next expansion(s), using "compl_pattern".