changeset 26550:919ee902079a v8.2.3804

patch 8.2.3804: script context not set when copying 'swf' and 'ts' Commit: https://github.com/vim/vim/commit/6206877c511c636cbeb2a2b911451af316b62d00 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 14 09:01:38 2021 +0000 patch 8.2.3804: script context not set when copying 'swf' and 'ts' Problem: Script context not set when copying 'swf' and 'ts'. Solution: Use COPY_OPT_SCTX with the right argument. (closes https://github.com/vim/vim/issues/9347)
author Bram Moolenaar <Bram@vim.org>
date Tue, 14 Dec 2021 10:15:05 +0100
parents cd63d34b9916
children 41dc2b732b9e
files src/option.c src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/option.c
+++ b/src/option.c
@@ -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);
@@ -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);
--- a/src/version.c
+++ b/src/version.c
@@ -750,6 +750,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3804,
+/**/
     3803,
 /**/
     3802,