Mercurial > vim
comparison src/option.c @ 16223:abb67309c1ca v8.1.1116
patch 8.1.1116: cannot enforce a Vim script style
commit https://github.com/vim/vim/commit/558ca4ae55096f8763ab8515a304cda9c57f18a7
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 4 18:15:38 2019 +0200
patch 8.1.1116: cannot enforce a Vim script style
Problem: Cannot enforce a Vim script style.
Solution: Add the :scriptversion command. (closes https://github.com/vim/vim/issues/3857)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 04 Apr 2019 18:30:05 +0200 |
parents | cd5c83115ec6 |
children | 5ef25fa57f71 |
comparison
equal
deleted
inserted
replaced
16222:5a55ab44b5a1 | 16223:abb67309c1ca |
---|---|
405 idopt_T indir; // global option: PV_NONE; | 405 idopt_T indir; // global option: PV_NONE; |
406 // local option: indirect option index | 406 // local option: indirect option index |
407 char_u *def_val[2]; // default values for variable (vi and vim) | 407 char_u *def_val[2]; // default values for variable (vi and vim) |
408 #ifdef FEAT_EVAL | 408 #ifdef FEAT_EVAL |
409 sctx_T script_ctx; // script context where the option was last set | 409 sctx_T script_ctx; // script context where the option was last set |
410 # define SCTX_INIT , {0, 0, 0} | 410 # define SCTX_INIT , {0, 0, 0, 1} |
411 #else | 411 #else |
412 # define SCTX_INIT | 412 # define SCTX_INIT |
413 #endif | 413 #endif |
414 }; | 414 }; |
415 | 415 |
5909 else | 5909 else |
5910 { | 5910 { |
5911 script_ctx.sc_sid = set_sid; | 5911 script_ctx.sc_sid = set_sid; |
5912 script_ctx.sc_seq = 0; | 5912 script_ctx.sc_seq = 0; |
5913 script_ctx.sc_lnum = 0; | 5913 script_ctx.sc_lnum = 0; |
5914 script_ctx.sc_version = 1; | |
5914 } | 5915 } |
5915 set_option_sctx_idx(idx, opt_flags, script_ctx); | 5916 set_option_sctx_idx(idx, opt_flags, script_ctx); |
5916 } | 5917 } |
5917 # endif | 5918 # endif |
5918 } | 5919 } |