mirror of
https://github.com/neovim/neovim.git
synced 2025-09-21 18:58:18 +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:
@@ -2211,8 +2211,7 @@ int buf_write(buf_T *buf, char *fname, char *sfname, linenr_T start, linenr_T en
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
// Disallow writing from .exrc and .vimrc in current directory for
|
||||
// security reasons.
|
||||
// Disallow writing in secure mode.
|
||||
if (check_secure()) {
|
||||
return FAIL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user