Mercurial > vim
diff src/insexpand.c @ 25984:c8fcea636252 v8.2.3525
patch 8.2.3525: option variable name does not match option name
Commit: https://github.com/vim/vim/commit/d4c4bfa0078a959ff90ef30288fd31d9d38f23d7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 16 21:14:11 2021 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 16 Oct 2021 22:15:04 +0200 |
parents | 416237f1de22 |
children | ac330e2fecc4 |
line wrap: on
line diff
--- 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