diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-05 07:14:39 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-05-05 09:20:30 +0800 |
commit | 88cfb49bee3c9102082c7010acb92244e4ad1348 (patch) | |
tree | 14c4ab0d2b319f83c42d940b00aebd42e8d971ac /src/nvim/undo.c | |
parent | b8d5586d5b0d1e2d25533ee398d16bb2e8412820 (diff) | |
download | rneovim-88cfb49bee3c9102082c7010acb92244e4ad1348.tar.gz rneovim-88cfb49bee3c9102082c7010acb92244e4ad1348.tar.bz2 rneovim-88cfb49bee3c9102082c7010acb92244e4ad1348.zip |
vim-patch:8.2.4890: inconsistent capitalization in error messages
Problem: Inconsistent capitalization in error messages.
Solution: Make capitalization consistent. (Doug Kearns)
https://github.com/vim/vim/commit/cf030578b26460643dca4a40e7f2e3bc19c749aa
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r-- | src/nvim/undo.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c index 64c16ed192..35f46e512d 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -137,6 +137,13 @@ typedef struct { # include "undo.c.generated.h" #endif +static const char e_undo_list_corrupt[] + = N_("E439: Undo list corrupt"); +static const char e_undo_line_missing[] + = N_("E440: Undo line missing"); +static const char e_write_error_in_undo_file_str[] + = N_("E829: Write error in undo file: %s"); + // used in undo_end() to report number of added and deleted lines static long u_newcount, u_oldcount; @@ -1340,7 +1347,7 @@ void u_write_undo(const char *const name, const bool forceit, buf_T *const buf, write_error: fclose(fp); if (!write_ok) { - semsg(_("E829: write error in undo file: %s"), file_name); + semsg(_(e_write_error_in_undo_file_str), file_name); } if (buf->b_ffname != NULL) { @@ -2809,7 +2816,7 @@ static void u_unch_branch(u_header_T *uhp) static u_entry_T *u_get_headentry(buf_T *buf) { if (buf->b_u_newhead == NULL || buf->b_u_newhead->uh_entry == NULL) { - iemsg(_("E439: undo list corrupt")); + iemsg(_(e_undo_list_corrupt)); return NULL; } return buf->b_u_newhead->uh_entry; @@ -2832,7 +2839,7 @@ static void u_getbot(buf_T *buf) linenr_T extra = buf->b_ml.ml_line_count - uep->ue_lcount; uep->ue_bot = uep->ue_top + (linenr_T)uep->ue_size + 1 + extra; if (uep->ue_bot < 1 || uep->ue_bot > buf->b_ml.ml_line_count) { - iemsg(_("E440: undo line missing")); + iemsg(_(e_undo_line_missing)); uep->ue_bot = uep->ue_top + 1; // assume all lines deleted, will // get all the old lines back // without deleting the current |