1
0
forked from aniani/vim

patch 8.2.3959: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more errors to errors.h.
This commit is contained in:
Bram Moolenaar
2021-12-31 18:49:43 +00:00
parent ef089f50f9
commit 6d0570117a
13 changed files with 122 additions and 45 deletions

View File

@@ -603,12 +603,11 @@ do_map(
&& STRNCMP(mp->m_keys, keys, (size_t)len) == 0)
{
if (abbrev)
semsg(_(
"E224: global abbreviation already exists for %s"),
semsg(
_(e_global_abbreviation_already_exists_for_str),
mp->m_keys);
else
semsg(_(
"E225: global mapping already exists for %s"),
semsg(_(e_global_mapping_already_exists_for_str),
mp->m_keys);
retval = 5;
goto theend;
@@ -741,12 +740,11 @@ do_map(
else if (unique)
{
if (abbrev)
semsg(_(
"E226: abbreviation already exists for %s"),
semsg(
_(e_abbreviation_already_exists_for_str),
p);
else
semsg(_(
"E227: mapping already exists for %s"),
semsg(_(e_mapping_already_exists_for_str),
p);
retval = 5;
goto theend;
@@ -1855,7 +1853,7 @@ makemap(
c1 = 't';
break;
default:
iemsg(_("E228: makemap: Illegal mode"));
iemsg(_(e_makemap_illegal_mode));
return FAIL;
}
do // do this twice if c2 is set, 3 times with c3