comparison 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
comparison
equal deleted inserted replaced
25983:e9547957500d 25984:c8fcea636252
299 && !curwin->w_p_spell 299 && !curwin->w_p_spell
300 #endif 300 #endif
301 ) 301 )
302 : (*curbuf->b_p_tsr == NUL && *p_tsr == NUL 302 : (*curbuf->b_p_tsr == NUL && *p_tsr == NUL
303 #ifdef FEAT_COMPL_FUNC 303 #ifdef FEAT_COMPL_FUNC
304 && *curbuf->b_p_thsfu == NUL 304 && *curbuf->b_p_tsrfu == NUL
305 #endif 305 #endif
306 )) 306 ))
307 { 307 {
308 ctrl_x_mode = CTRL_X_NORMAL; 308 ctrl_x_mode = CTRL_X_NORMAL;
309 edit_submode = NULL; 309 edit_submode = NULL;
2244 case CTRL_X_FUNCTION: 2244 case CTRL_X_FUNCTION:
2245 return curbuf->b_p_cfu; 2245 return curbuf->b_p_cfu;
2246 case CTRL_X_OMNI: 2246 case CTRL_X_OMNI:
2247 return curbuf->b_p_ofu; 2247 return curbuf->b_p_ofu;
2248 case CTRL_X_THESAURUS: 2248 case CTRL_X_THESAURUS:
2249 return curbuf->b_p_thsfu; 2249 return curbuf->b_p_tsrfu;
2250 default: 2250 default:
2251 return (char_u *)""; 2251 return (char_u *)"";
2252 } 2252 }
2253 } 2253 }
2254 2254
2749 static int 2749 static int
2750 thesaurus_func_complete(int type UNUSED) 2750 thesaurus_func_complete(int type UNUSED)
2751 { 2751 {
2752 #ifdef FEAT_COMPL_FUNC 2752 #ifdef FEAT_COMPL_FUNC
2753 return (type == CTRL_X_THESAURUS 2753 return (type == CTRL_X_THESAURUS
2754 && curbuf->b_p_thsfu != NULL 2754 && curbuf->b_p_tsrfu != NULL
2755 && *curbuf->b_p_thsfu != NUL); 2755 && *curbuf->b_p_tsrfu != NUL);
2756 #else 2756 #else
2757 return FALSE; 2757 return FALSE;
2758 #endif 2758 #endif
2759 } 2759 }
2760 2760