mirror of
https://github.com/neovim/neovim.git
synced 2025-12-01 06:23:01 +00:00
refactor: deprecate 'secure' option
Now that 'exrc' files must be explicitly marked trusted there is no need to constrain what can be done in them.
This commit is contained in:
@@ -4223,8 +4223,7 @@ theend:
|
||||
|
||||
static void ex_autocmd(exarg_T *eap)
|
||||
{
|
||||
// Disallow autocommands from .exrc and .vimrc in current
|
||||
// directory for security reasons.
|
||||
// Disallow autocommands in secure mode.
|
||||
if (secure) {
|
||||
secure = 2;
|
||||
eap->errmsg = _(e_curdir);
|
||||
|
||||
Reference in New Issue
Block a user