diff options
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 387b94533c..86840faa43 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -3997,6 +3997,8 @@ static char_u *get_varp_from(vimoption_T *p, buf_T *buf, win_T *win) return (char_u *)&(buf->b_p_cfu); case PV_OFU: return (char_u *)&(buf->b_p_ofu); + case PV_URF: + return (char_u *)&(buf->b_p_urf); case PV_EOF: return (char_u *)&(buf->b_p_eof); case PV_EOL: @@ -4077,6 +4079,8 @@ static char_u *get_varp_from(vimoption_T *p, buf_T *buf, win_T *win) return (char_u *)&(buf->b_p_sw); case PV_TFU: return (char_u *)&(buf->b_p_tfu); + case PV_UMF: + return (char_u *)&(buf->b_p_umf); case PV_TS: return (char_u *)&(buf->b_p_ts); case PV_TW: @@ -4413,9 +4417,13 @@ void buf_copy_options(buf_T *buf, int flags) set_buflocal_cfu_callback(buf); buf->b_p_ofu = xstrdup(p_ofu); COPY_OPT_SCTX(buf, BV_OFU); + buf->b_p_urf = xstrdup(p_urf); + COPY_OPT_SCTX(buf, BV_URF); set_buflocal_ofu_callback(buf); buf->b_p_tfu = xstrdup(p_tfu); COPY_OPT_SCTX(buf, BV_TFU); + buf->b_p_umf = xstrdup(p_umf); + COPY_OPT_SCTX(buf, BV_UMF); set_buflocal_tfu_callback(buf); buf->b_p_sts = p_sts; COPY_OPT_SCTX(buf, BV_STS); |