diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-05-22 09:24:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-22 09:24:36 +0100 |
commit | 01ea42c32afe8d235d2110a5fcf12a353a7d2a71 (patch) | |
tree | 58500aaeb1c3c6ea01fb8a11df7c060282469493 /src/nvim/ex_cmds.c | |
parent | 62a80c36c158ecf4ffc8c93d8891aeb2f0d2f287 (diff) | |
download | rneovim-01ea42c32afe8d235d2110a5fcf12a353a7d2a71.tar.gz rneovim-01ea42c32afe8d235d2110a5fcf12a353a7d2a71.tar.bz2 rneovim-01ea42c32afe8d235d2110a5fcf12a353a7d2a71.zip |
refactor(vim.secure): move to lua/secure.c
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 9a8dc9899c..1d8c3c0cf4 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -54,7 +54,6 @@ #include "nvim/highlight_group.h" #include "nvim/indent.h" #include "nvim/input.h" -#include "nvim/lua/executor.h" #include "nvim/macros.h" #include "nvim/main.h" #include "nvim/mark.h" @@ -4804,29 +4803,3 @@ void ex_oldfiles(exarg_T *eap) } } } - -void ex_trust(exarg_T *eap) -{ - const char *const p = skiptowhite(eap->arg); - char *arg1 = xmemdupz(eap->arg, (size_t)(p - eap->arg)); - const char *action = "allow"; - const char *path = skipwhite(p); - - if (strcmp(arg1, "++deny") == 0) { - action = "deny"; - } else if (strcmp(arg1, "++remove") == 0) { - action = "remove"; - } else if (*arg1 != '\0') { - semsg(e_invarg2, arg1); - goto theend; - } - - if (path[0] == '\0') { - path = NULL; - } - - nlua_trust(action, path); - -theend: - xfree(arg1); -} |