Mercurial > vim
diff src/diff.c @ 26602:fac6673086df v8.2.3830
patch 8.2.3830: error messages are spread out
Commit: https://github.com/vim/vim/commit/e124204c4f8ea8b4fe5357b7613092a7acb5feb8
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 16 20:56:57 2021 +0000
patch 8.2.3830: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 Dec 2021 22:00:05 +0100 |
parents | 2e8226c03007 |
children | fc859aea8cec |
line wrap: on
line diff
--- a/src/diff.c +++ b/src/diff.c @@ -173,7 +173,7 @@ diff_buf_add(buf_T *buf) return; } - semsg(_("E96: Cannot diff more than %d buffers"), DB_COUNT); + semsg(_(e_cannot_diff_more_than_nr_buffers), DB_COUNT); } /* @@ -1081,7 +1081,7 @@ check_external_diff(diffio_T *diffio) { if (io_error) emsg(_("E810: Cannot read or write temp files")); - emsg(_("E97: Cannot create diffs")); + emsg(_(e_cannot_create_diffs)); diff_a_works = MAYBE; #if defined(MSWIN) diff_bin_works = MAYBE; @@ -1636,7 +1636,7 @@ diff_read( fd = mch_fopen((char *)dout->dout_fname, "r"); if (fd == NULL) { - emsg(_("E98: Cannot read diff output")); + emsg(_(e_cannot_read_diff_output)); return; } } @@ -2625,7 +2625,7 @@ ex_diffgetput(exarg_T *eap) idx_cur = diff_buf_idx(curbuf); if (idx_cur == DB_COUNT) { - emsg(_("E99: Current buffer is not in diff mode")); + emsg(_(e_current_buffer_is_not_in_diff_mode)); return; } @@ -2646,7 +2646,7 @@ ex_diffgetput(exarg_T *eap) if (found_not_ma) emsg(_("E793: No other buffer in diff mode is modifiable")); else - emsg(_("E100: No other buffer in diff mode")); + emsg(_(e_no_other_buffer_in_diff_mode)); return; } @@ -2656,7 +2656,7 @@ ex_diffgetput(exarg_T *eap) && curtab->tp_diffbuf[i] != NULL && (eap->cmdidx != CMD_diffput || curtab->tp_diffbuf[i]->b_p_ma)) { - emsg(_("E101: More than two buffers in diff mode, don't know which one to use")); + emsg(_(e_more_than_two_buffers_in_diff_mode_dont_know_which_one_to_use)); return; } } @@ -2679,7 +2679,7 @@ ex_diffgetput(exarg_T *eap) buf = buflist_findnr(i); if (buf == NULL) { - semsg(_("E102: Can't find buffer \"%s\""), eap->arg); + semsg(_(e_cant_find_buffer_str), eap->arg); return; } if (buf == curbuf) @@ -2687,7 +2687,7 @@ ex_diffgetput(exarg_T *eap) idx_other = diff_buf_idx(buf); if (idx_other == DB_COUNT) { - semsg(_("E103: Buffer \"%s\" is not in diff mode"), eap->arg); + semsg(_(e_buffer_str_is_not_in_diff_mode), eap->arg); return; } }