diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-10-16 21:14:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-16 21:14:11 +0100 |
commit | d4c4bfa0078a959ff90ef30288fd31d9d38f23d7 (patch) | |
tree | a0c7059b555ac8585d2230c0a6fb4a268f3c27bc /src/option.c | |
parent | 4eeedc09fed0cbbb3ba48317e0a01e20cd0b4f80 (diff) |
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/option.c')
-rw-r--r-- | src/option.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/option.c b/src/option.c index 385126eb3d..7d86ccf14d 100644 --- a/src/option.c +++ b/src/option.c @@ -5433,7 +5433,7 @@ get_varp(struct vimoption *p) #ifdef FEAT_COMPL_FUNC case PV_CFU: return (char_u *)&(curbuf->b_p_cfu); case PV_OFU: return (char_u *)&(curbuf->b_p_ofu); - case PV_THSFU: return (char_u *)&(curbuf->b_p_thsfu); + case PV_THSFU: return (char_u *)&(curbuf->b_p_tsrfu); #endif #ifdef FEAT_EVAL case PV_TFU: return (char_u *)&(curbuf->b_p_tfu); @@ -5936,7 +5936,7 @@ buf_copy_options(buf_T *buf, int flags) COPY_OPT_SCTX(buf, BV_CFU); buf->b_p_ofu = vim_strsave(p_ofu); COPY_OPT_SCTX(buf, BV_OFU); - buf->b_p_thsfu = vim_strsave(p_thsfu); + buf->b_p_tsrfu = vim_strsave(p_thsfu); COPY_OPT_SCTX(buf, BV_THSFU); #endif #ifdef FEAT_EVAL |