Skip to content

Commit

Permalink
patch 8.2.3804: script context not set when copying 'swf' and 'ts'
Browse files Browse the repository at this point in the history
Problem:    Script context not set when copying 'swf' and 'ts'.
Solution:   Use COPY_OPT_SCTX with the right argument. (closes #9347)
  • Loading branch information
brammool committed Dec 14, 2021
1 parent 829c8e8 commit 6206877
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/option.c
Original file line number Diff line number Diff line change
Expand Up @@ -5925,7 +5925,7 @@ buf_copy_options(buf_T *buf, int flags)
else
{
buf->b_p_swf = p_swf;
COPY_OPT_SCTX(buf, BV_INF);
COPY_OPT_SCTX(buf, BV_SWF);
}
buf->b_p_cpt = vim_strsave(p_cpt);
COPY_OPT_SCTX(buf, BV_CPT);
Expand Down Expand Up @@ -6127,6 +6127,7 @@ buf_copy_options(buf_T *buf, int flags)
COPY_OPT_SCTX(buf, BV_ISK);
did_isk = TRUE;
buf->b_p_ts = p_ts;
COPY_OPT_SCTX(buf, BV_TS);
#ifdef FEAT_VARTABS
buf->b_p_vts = vim_strsave(p_vts);
COPY_OPT_SCTX(buf, BV_VTS);
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3804,
/**/
3803,
/**/
Expand Down

0 comments on commit 6206877

Please sign in to comment.