Mercurial > vim
diff src/option.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/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