commit | 82b033eff82d3ed0da77fd5f5a1c023766acabba | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Mar 24 14:02:04 2019 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Mar 24 14:02:04 2019 +0100 |
tree | 044982426b63e83769cda707b56da4d5c2b9d2b5 | |
parent | 63dbfd33c1d47400c62775842b5b750ee69e2383 [diff] [blame] |
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.
diff --git a/src/buffer.c b/src/buffer.c index 158c30a..6cfa41f 100644 --- a/src/buffer.c +++ b/src/buffer.c
@@ -5498,7 +5498,7 @@ 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);