comparison 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
comparison
equal deleted inserted replaced
26876:601a973ac16c 26877:06a137af96f8
1135 else 1135 else
1136 #endif 1136 #endif
1137 if ((do_in && (itmp = vim_tempname('i', FALSE)) == NULL) 1137 if ((do_in && (itmp = vim_tempname('i', FALSE)) == NULL)
1138 || (do_out && (otmp = vim_tempname('o', FALSE)) == NULL)) 1138 || (do_out && (otmp = vim_tempname('o', FALSE)) == NULL))
1139 { 1139 {
1140 emsg(_(e_notmp)); 1140 emsg(_(e_cant_get_temp_file_name));
1141 goto filterend; 1141 goto filterend;
1142 } 1142 }
1143 1143
1144 /* 1144 /*
1145 * The writing and reading of temp files will not be shown. 1145 * The writing and reading of temp files will not be shown.
1152 msg_putchar('\n'); // keep message from buf_write() 1152 msg_putchar('\n'); // keep message from buf_write()
1153 --no_wait_return; 1153 --no_wait_return;
1154 #if defined(FEAT_EVAL) 1154 #if defined(FEAT_EVAL)
1155 if (!aborting()) 1155 if (!aborting())
1156 #endif 1156 #endif
1157 (void)semsg(_(e_notcreate), itmp); // will call wait_return 1157 (void)semsg(_(e_cant_create_file_str), itmp); // will call wait_return
1158 goto filterend; 1158 goto filterend;
1159 } 1159 }
1160 if (curbuf != old_curbuf) 1160 if (curbuf != old_curbuf)
1161 goto filterend; 1161 goto filterend;
1162 1162
1227 #if defined(FEAT_EVAL) 1227 #if defined(FEAT_EVAL)
1228 if (!aborting()) 1228 if (!aborting())
1229 #endif 1229 #endif
1230 { 1230 {
1231 msg_putchar('\n'); 1231 msg_putchar('\n');
1232 semsg(_(e_notread), otmp); 1232 semsg(_(e_cant_read_file_str), otmp);
1233 } 1233 }
1234 goto error; 1234 goto error;
1235 } 1235 }
1236 if (curbuf != old_curbuf) 1236 if (curbuf != old_curbuf)
1237 goto filterend; 1237 goto filterend;
4778 if (got_int) // interrupted 4778 if (got_int) // interrupted
4779 emsg(_(e_interrupted)); 4779 emsg(_(e_interrupted));
4780 else if (got_match) // did find something but nothing substituted 4780 else if (got_match) // did find something but nothing substituted
4781 msg(""); 4781 msg("");
4782 else if (subflags.do_error) // nothing found 4782 else if (subflags.do_error) // nothing found
4783 semsg(_(e_patnotf2), get_search_pat()); 4783 semsg(_(e_pattern_not_found_str), get_search_pat());
4784 } 4784 }
4785 4785
4786 #ifdef FEAT_FOLDING 4786 #ifdef FEAT_FOLDING
4787 if (subflags.do_ask && hasAnyFolding(curwin)) 4787 if (subflags.do_ask && hasAnyFolding(curwin))
4788 // Cursor position may require updating 4788 // Cursor position may require updating