summaryrefslogtreecommitdiff
path: root/src/insexpand.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-10-16 21:14:11 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-16 21:14:11 +0100
commitd4c4bfa0078a959ff90ef30288fd31d9d38f23d7 (patch)
treea0c7059b555ac8585d2230c0a6fb4a268f3c27bc /src/insexpand.c
parent4eeedc09fed0cbbb3ba48317e0a01e20cd0b4f80 (diff)
downloadvim-git-d4c4bfa0078a959ff90ef30288fd31d9d38f23d7.tar.gz
patch 8.2.3525: option variable name does not match option namev8.2.3525
Problem: Option variable name does not match option name. (Christ van Willigen) Solution: Rename the variable.
Diffstat (limited to 'src/insexpand.c')
-rw-r--r--src/insexpand.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/insexpand.c b/src/insexpand.c
index 624146a3f..bcaa3fdf5 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -301,7 +301,7 @@ has_compl_option(int dict_opt)
)
: (*curbuf->b_p_tsr == NUL && *p_tsr == NUL
#ifdef FEAT_COMPL_FUNC
- && *curbuf->b_p_thsfu == NUL
+ && *curbuf->b_p_tsrfu == NUL
#endif
))
{
@@ -2246,7 +2246,7 @@ 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 *)"";
}
@@ -2751,8 +2751,8 @@ thesaurus_func_complete(int type UNUSED)
{
#ifdef FEAT_COMPL_FUNC
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);
#else
return FALSE;
#endif