mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.1.0177: defining function in sandbox is inconsistent
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)
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user