diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-16 20:56:57 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-16 20:56:57 +0000 |
commit | e124204c4f8ea8b4fe5357b7613092a7acb5feb8 (patch) | |
tree | 8a049a292b17314710048a1b17625416c2bfc8d6 /src/buffer.c | |
parent | 94c785d235dccacf6cdf38c5903115b61ca8a981 (diff) |
patch 8.2.3830: error messages are spread outv8.2.3830
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/buffer.c b/src/buffer.c index be946d46b6..cbb57efa51 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -2385,7 +2385,7 @@ buflist_getfile( if ((options & GETF_ALT) && n == 0) emsg(_(e_no_alternate_file)); else - semsg(_("E92: Buffer %d not found"), n); + semsg(_(e_buffer_nr_not_found), n); return FAIL; } @@ -2669,9 +2669,9 @@ buflist_findpat( } if (match == -2) - semsg(_("E93: More than one match for %s"), pattern); + semsg(_(e_more_than_one_match_for_str), pattern); else if (match < 0) - semsg(_("E94: No matching buffer for %s"), pattern); + semsg(_(e_no_matching_buffer_for_str), pattern); return match; } @@ -3373,7 +3373,7 @@ setfname( if (obuf->b_ml.ml_mfp != NULL || in_use) { if (message) - emsg(_("E95: Buffer with this name already exists")); + emsg(_(e_buffer_with_this_name_already_exists)); vim_free(ffname); return FAIL; } |