1
0
forked from aniani/vim

patch 8.2.3190: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move error messages to errors.h and give them a clear name.
This commit is contained in:
Bram Moolenaar
2021-07-20 21:07:36 +02:00
parent 9fa5dabedc
commit e29a27f6f8
29 changed files with 127 additions and 98 deletions

View File

@@ -466,7 +466,7 @@ ex_sort(exarg_T *eap)
{
if (last_search_pat() == NULL)
{
emsg(_(e_noprevre));
emsg(_(e_no_previous_regular_expression));
goto sortend;
}
regmatch.regprog = vim_regcomp(last_search_pat(), RE_MAGIC);
@@ -935,7 +935,7 @@ do_bang(
{
if (prevcmd == NULL)
{
emsg(_(e_noprev));
emsg(_(e_no_previous_command));
vim_free(newcmd);
return;
}
@@ -2356,7 +2356,7 @@ check_readonly(int *forceit, buf_T *buf)
else
#endif
if (buf->b_p_ro)
emsg(_(e_readonly));
emsg(_(e_readonly_option_is_set_add_bang_to_override));
else
semsg(_("E505: \"%s\" is read-only (add ! to override)"),
buf->b_fname);
@@ -3763,7 +3763,7 @@ ex_substitute(exarg_T *eap)
{
if (old_sub == NULL) // there is no previous command
{
emsg(_(e_nopresub));
emsg(_(e_no_previous_substitute_regular_expression));
return;
}
sub = old_sub;
@@ -3779,7 +3779,7 @@ ex_substitute(exarg_T *eap)
{
if (old_sub == NULL) // there is no previous command
{
emsg(_(e_nopresub));
emsg(_(e_no_previous_substitute_regular_expression));
return;
}
pat = NULL; // search_regcomp() will use previous pattern