diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-20 21:07:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-20 21:07:36 +0200 |
commit | e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3 (patch) | |
tree | eb8bd787e936db02a1617fb033aed2e224b3bbd3 /src/ex_cmds.c | |
parent | 9fa5dabedc4ed5af85773413e91c2fdbe4cb9f0a (diff) |
patch 8.2.3190: error messages are spread outv8.2.3190
Problem: Error messages are spread out.
Solution: Move error messages to errors.h and give them a clear name.
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 7e0bd64ab7..513306bb31 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -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 |