mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.3830: error messages are spread out
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user