mirror of
https://github.com/vim/vim.git
synced 2025-09-05 21:43:39 -04:00
patch 9.0.1510: misleading variable name for error message
Problem: Misleading variable name for error message. Solution: Change "name" to "number". (closes #12345)
This commit is contained in:
parent
2391954036
commit
70e8028a4d
@ -1236,7 +1236,7 @@ EXTERN char e_use_w_or_w_gt_gt[]
|
||||
INIT(= N_("E494: Use w or w>>"));
|
||||
EXTERN char e_no_autocommand_file_name_to_substitute_for_afile[]
|
||||
INIT(= N_("E495: No autocommand file name to substitute for \"<afile>\""));
|
||||
EXTERN char e_no_autocommand_buffer_name_to_substitute_for_abuf[]
|
||||
EXTERN char e_no_autocommand_buffer_number_to_substitute_for_abuf[]
|
||||
INIT(= N_("E496: No autocommand buffer number to substitute for \"<abuf>\""));
|
||||
EXTERN char e_no_autocommand_match_name_to_substitute_for_amatch[]
|
||||
INIT(= N_("E497: No autocommand match name to substitute for \"<amatch>\""));
|
||||
|
@ -6150,7 +6150,8 @@ get_tabpage_arg(exarg_T *eap)
|
||||
tab_number = tabpage_index(lastused_tabpage);
|
||||
else
|
||||
{
|
||||
eap->errmsg = ex_errmsg(e_invalid_value_for_argument_str, eap->arg);
|
||||
eap->errmsg = ex_errmsg(e_invalid_value_for_argument_str,
|
||||
eap->arg);
|
||||
tab_number = 0;
|
||||
goto theend;
|
||||
}
|
||||
@ -9380,7 +9381,7 @@ eval_vars(
|
||||
case SPEC_ABUF: // buffer number for autocommand
|
||||
if (autocmd_bufnr <= 0)
|
||||
{
|
||||
*errormsg = _(e_no_autocommand_buffer_name_to_substitute_for_abuf);
|
||||
*errormsg = _(e_no_autocommand_buffer_number_to_substitute_for_abuf);
|
||||
return NULL;
|
||||
}
|
||||
sprintf((char *)strbuf, "%d", autocmd_bufnr);
|
||||
|
@ -695,6 +695,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1510,
|
||||
/**/
|
||||
1509,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user