aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/globals.h
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2022-11-17 08:47:41 -0700
committerGitHub <noreply@github.com>2022-11-17 08:47:41 -0700
commit32cba4cee6c2ca232b5def16fe1bae8166d093f1 (patch)
tree31cb31b570e2263250471ea2ee08be1b41ac8d31 /src/nvim/globals.h
parent9736605672e8648bbe8739a6fdd1c315183bce40 (diff)
parent6d9c3d903ecee2d1d21d0a0806f1a2bebe628e8e (diff)
downloadrneovim-32cba4cee6c2ca232b5def16fe1bae8166d093f1.tar.gz
rneovim-32cba4cee6c2ca232b5def16fe1bae8166d093f1.tar.bz2
rneovim-32cba4cee6c2ca232b5def16fe1bae8166d093f1.zip
Merge pull request #20956 from gpanders/lua-readsecure
feat: implement vim.secure.read() and use it for 'exrc'
Diffstat (limited to 'src/nvim/globals.h')
-rw-r--r--src/nvim/globals.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h
index 76f62fe267..130f3f6c48 100644
--- a/src/nvim/globals.h
+++ b/src/nvim/globals.h
@@ -489,8 +489,7 @@ EXTERN int stdin_fd INIT(= -1);
// true when doing full-screen output, otherwise only writing some messages.
EXTERN int full_screen INIT(= false);
-/// Non-zero when only "safe" commands are allowed, e.g. when sourcing .exrc or
-/// .vimrc in current directory.
+/// Non-zero when only "safe" commands are allowed
EXTERN int secure INIT(= 0);
/// Non-zero when changing text and jumping to another window or editing another buffer is not
@@ -864,7 +863,7 @@ EXTERN char e_api_spawn_failed[] INIT(= N_("E903: Could not spawn API job"));
EXTERN char e_argreq[] INIT(= N_("E471: Argument required"));
EXTERN char e_backslash[] INIT(= N_("E10: \\ should be followed by /, ? or &"));
EXTERN char e_cmdwin[] INIT(= N_("E11: Invalid in command-line window; <CR> executes, CTRL-C quits"));
-EXTERN char e_curdir[] INIT(= N_("E12: Command not allowed from exrc/vimrc in current dir or tag search"));
+EXTERN char e_curdir[] INIT(= N_("E12: Command not allowed in secure mode in current dir or tag search"));
EXTERN char e_command_too_recursive[] INIT(= N_("E169: Command too recursive"));
EXTERN char e_endif[] INIT(= N_("E171: Missing :endif"));
EXTERN char e_endtry[] INIT(= N_("E600: Missing :endtry"));