diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-07-10 19:39:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-07-10 19:39:18 +0200 |
commit | 93343725b5fa1cf580a24302455980faacae8ee2 (patch) | |
tree | 0467626f476965cd0f6042fec8745f3910e42d9b /src/ex_cmds.h | |
parent | 18085fae7482906f8e94ecc7386ecf6a02dc407d (diff) | |
download | vim-git-93343725b5fa1cf580a24302455980faacae8ee2.tar.gz |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds.h b/src/ex_cmds.h index 48b025315..045bfcb20 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, |