From 460ae5dfca31fa627531c263184849976755cf6b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 1 Jan 2022 14:19:49 +0000 Subject: patch 8.2.3967: error messages are spread out Problem: Error messages are spread out. Solution: Move more errors to errors.h. --- src/ex_cmds.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ex_cmds.c') diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 25c1c8b2e..ae9d73fa3 100644 --- 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 -- cgit v1.2.1