diff src/buffer.c @ 16082:2699db3e4d9d v8.1.1046

patch 8.1.1046: the "secure" variable is used inconsistently commit https://github.com/vim/vim/commit/82b033eff82d3ed0da77fd5f5a1c023766acabba Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 24 14:02:04 2019 +0100 patch 8.1.1046: the "secure" variable is used inconsistently Problem: the "secure" variable is used inconsistently. (Justin M. Keyes) Solution: Set it to one instead of incrementing.
author Bram Moolenaar <Bram@vim.org>
date Sun, 24 Mar 2019 14:15:04 +0100
parents ddd82b1c9e9d
children cd5c83115ec6
line wrap: on
line diff
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5498,7 +5498,7 @@ chk_modeline(
 		current_sctx.sc_lnum = 0;
 #endif
 		// Make sure no risky things are executed as a side effect.
-		++secure;
+		secure = 1;
 
 		retval = do_set(s, OPT_MODELINE | OPT_LOCAL | flags);