diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2020-03-01 23:23:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-01 23:23:50 -0800 |
commit | 0110735547bc5a491eff195096ba93e3ddefb19f (patch) | |
tree | aad45b055941ef137d86494b534a7b53e5ac38ec /src/nvim/ex_cmds.c | |
parent | 5e0c435ca1b711e80f78429431b4d400d789c618 (diff) | |
parent | f1923d4b92239ef2ca280bf1ce6c5f6cc7cb4f1a (diff) | |
download | rneovim-0110735547bc5a491eff195096ba93e3ddefb19f.tar.gz rneovim-0110735547bc5a491eff195096ba93e3ddefb19f.tar.bz2 rneovim-0110735547bc5a491eff195096ba93e3ddefb19f.zip |
Merge #11929 from janlazo/vim-8.1.1510
vim-patch:8.0.1587,8.1.{253,881,883,885,896,939,1107,1108,1466,1489,1510,1552,1642,1793},8.2.{108,133,135}
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index bc6821f60f..ba66b666e0 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -3008,18 +3008,18 @@ void ex_z(exarg_T *eap) ex_no_reprint = true; } -/* - * Check if the restricted flag is set. - * If so, give an error message and return TRUE. - * Otherwise, return FALSE. - */ -int check_restricted(void) +// Check if the restricted flag is set. +// If so, give an error message and return true. +// Otherwise, return false. +bool check_restricted(void) + FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT { if (restricted) { - EMSG(_("E145: Shell commands not allowed in restricted mode")); - return TRUE; + EMSG(_("E145: Shell commands and some functionality not allowed" + " in restricted mode")); + return true; } - return FALSE; + return false; } /* |