mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 23:08:16 +00:00
Removed restricted mode - Fix #11972
This commit is contained in:
@@ -965,7 +965,7 @@ static void typval_exec_lua(const char *lcmd, size_t lcmd_len, const char *name,
|
||||
typval_T *const args, int argcount, bool special,
|
||||
typval_T *ret_tv)
|
||||
{
|
||||
if (check_restricted() || check_secure()) {
|
||||
if (check_secure()) {
|
||||
if (ret_tv) {
|
||||
ret_tv->v_type = VAR_NUMBER;
|
||||
ret_tv->vval.v_number = 0;
|
||||
|
Reference in New Issue
Block a user