summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-07-10 19:39:18 +0200
committerBram Moolenaar <Bram@vim.org>2018-07-10 19:39:18 +0200
commit93343725b5fa1cf580a24302455980faacae8ee2 (patch)
tree0467626f476965cd0f6042fec8745f3910e42d9b /src/ex_cmds.h
parent18085fae7482906f8e94ecc7386ecf6a02dc407d (diff)
patch 8.1.0177: defining function in sandbox is inconsistentv8.1.0177
Problem: Defining function in sandbox is inconsistent, cannot use :function but can define a lambda. Solution: Allow defining a function in the sandbox, but also use the sandbox when executing it. (closes #3182)
Diffstat (limited to 'src/ex_cmds.h')
-rw-r--r--src/ex_cmds.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds.h b/src/ex_cmds.h
index 48b0253157..045bfcb203 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -584,7 +584,7 @@ EX(CMD_for, "for", ex_while,
EXTRA|NOTRLCOM|SBOXOK|CMDWIN,
ADDR_LINES),
EX(CMD_function, "function", ex_function,
- EXTRA|BANG|CMDWIN,
+ EXTRA|BANG|SBOXOK|CMDWIN,
ADDR_LINES),
EX(CMD_global, "global", ex_global,
RANGE|WHOLEFOLD|BANG|EXTRA|DFLALL|SBOXOK|CMDWIN,