mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.3967: error messages are spread out
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
This commit is contained in:
@@ -2124,15 +2124,14 @@ do_one_cmd(
|
||||
|
||||
if (!ni && !(ea.argt & EX_RANGE) && ea.addr_count > 0)
|
||||
{
|
||||
// no range allowed
|
||||
errormsg = _(e_norange);
|
||||
errormsg = _(e_no_range_allowed);
|
||||
goto doend;
|
||||
}
|
||||
}
|
||||
|
||||
if (!ni && !(ea.argt & EX_BANG) && ea.forceit) // no <!> allowed
|
||||
if (!ni && !(ea.argt & EX_BANG) && ea.forceit)
|
||||
{
|
||||
errormsg = _(e_nobang);
|
||||
errormsg = _(e_no_bang_allowed);
|
||||
goto doend;
|
||||
}
|
||||
|
||||
@@ -4016,7 +4015,7 @@ skip_range(
|
||||
addr_error(cmd_addr_T addr_type)
|
||||
{
|
||||
if (addr_type == ADDR_NONE)
|
||||
emsg(_(e_norange));
|
||||
emsg(_(e_no_range_allowed));
|
||||
else
|
||||
emsg(_(e_invalid_range));
|
||||
}
|
||||
@@ -6882,7 +6881,7 @@ ex_open(exarg_T *eap)
|
||||
if (vim_regexec(®match, line, (colnr_T)0))
|
||||
curwin->w_cursor.col = (colnr_T)(regmatch.startp[0] - line);
|
||||
else
|
||||
emsg(_(e_nomatch));
|
||||
emsg(_(e_no_match));
|
||||
vim_regfree(regmatch.regprog);
|
||||
vim_free(line);
|
||||
}
|
||||
@@ -7254,7 +7253,7 @@ ex_read(exarg_T *eap)
|
||||
#if defined(FEAT_EVAL)
|
||||
if (!aborting())
|
||||
#endif
|
||||
semsg(_(e_notopen), eap->arg);
|
||||
semsg(_(e_cant_open_file_str), eap->arg);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user