Mercurial > vim
diff src/ex_cmds.c @ 26877:06a137af96f8 v8.2.3967
patch 8.2.3967: error messages are spread out
Commit: https://github.com/vim/vim/commit/460ae5dfca31fa627531c263184849976755cf6b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 1 14:19:49 2022 +0000
patch 8.2.3967: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Jan 2022 15:30:05 +0100 |
parents | bce848ec8b1b |
children | 7f150a4936f2 |
line wrap: on
line diff
--- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -1137,7 +1137,7 @@ do_filter( if ((do_in && (itmp = vim_tempname('i', FALSE)) == NULL) || (do_out && (otmp = vim_tempname('o', FALSE)) == NULL)) { - emsg(_(e_notmp)); + emsg(_(e_cant_get_temp_file_name)); goto filterend; } @@ -1154,7 +1154,7 @@ do_filter( #if defined(FEAT_EVAL) if (!aborting()) #endif - (void)semsg(_(e_notcreate), itmp); // will call wait_return + (void)semsg(_(e_cant_create_file_str), itmp); // will call wait_return goto filterend; } if (curbuf != old_curbuf) @@ -1229,7 +1229,7 @@ do_filter( #endif { msg_putchar('\n'); - semsg(_(e_notread), otmp); + semsg(_(e_cant_read_file_str), otmp); } goto error; } @@ -4780,7 +4780,7 @@ outofmem: else if (got_match) // did find something but nothing substituted msg(""); else if (subflags.do_error) // nothing found - semsg(_(e_patnotf2), get_search_pat()); + semsg(_(e_pattern_not_found_str), get_search_pat()); } #ifdef FEAT_FOLDING