comparison src/buffer.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 1f18984498e1
comparison
equal deleted inserted replaced
16222:5a55ab44b5a1 16223:abb67309c1ca
5491 #ifdef FEAT_EVAL 5491 #ifdef FEAT_EVAL
5492 save_current_sctx = current_sctx; 5492 save_current_sctx = current_sctx;
5493 current_sctx.sc_sid = SID_MODELINE; 5493 current_sctx.sc_sid = SID_MODELINE;
5494 current_sctx.sc_seq = 0; 5494 current_sctx.sc_seq = 0;
5495 current_sctx.sc_lnum = 0; 5495 current_sctx.sc_lnum = 0;
5496 current_sctx.sc_version = 1;
5496 #endif 5497 #endif
5497 // Make sure no risky things are executed as a side effect. 5498 // Make sure no risky things are executed as a side effect.
5498 secure = 1; 5499 secure = 1;
5499 5500
5500 retval = do_set(s, OPT_MODELINE | OPT_LOCAL | flags); 5501 retval = do_set(s, OPT_MODELINE | OPT_LOCAL | flags);