0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4246: one error message not in errors.h

Problem:    One error message not in errors.h. (Antonio Colombo)
Solution:   Move the message and rename.
This commit is contained in:
Bram Moolenaar
2022-01-28 21:00:51 +00:00
parent 652dee4486
commit e96eea7b6a
3 changed files with 8 additions and 4 deletions

View File

@@ -1030,7 +1030,6 @@ VIM_init(void)
#ifdef DYNAMIC_PERL
static char *e_noperl = N_("Sorry, this command is disabled: the Perl library could not be loaded.");
#endif
static char *e_perlsandbox = N_("E299: Perl evaluation forbidden in sandbox without the Safe module");
/*
* ":perl"
@@ -1084,7 +1083,7 @@ ex_perl(exarg_T *eap)
safe = perl_get_sv("VIM::safe", FALSE);
# ifndef MAKE_TEST /* avoid a warning for unreachable code */
if (safe == NULL || !SvTRUE(safe))
emsg(_(e_perlsandbox));
emsg(_(e_perl_evaluation_forbidden_in_sandbox_without_safe_module));
else
# endif
{
@@ -1361,7 +1360,7 @@ do_perleval(char_u *str, typval_T *rettv)
safe = get_sv("VIM::safe", FALSE);
# ifndef MAKE_TEST /* avoid a warning for unreachable code */
if (safe == NULL || !SvTRUE(safe))
emsg(_(e_perlsandbox));
emsg(_(e_perl_evaluation_forbidden_in_sandbox_without_safe_module));
else
# endif
{