0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.3258: error messages have the wrong text

Problem:    Error messages have the wrong text.
Solution:   Adjust the error message.
This commit is contained in:
Bram Moolenaar
2021-07-31 19:12:58 +02:00
parent 8e3fc135e8
commit 78db17c6f3
4 changed files with 39 additions and 37 deletions

View File

@@ -718,7 +718,7 @@ check_for_string_or_number_or_list_arg(typval_T *args, int idx)
&& args[idx].v_type != VAR_LIST)
{
if (idx >= 0)
semsg(_(e_string_or_number_or_list_required_for_argument_nr), idx + 1);
semsg(_(e_string_number_or_list_required_for_argument_nr), idx + 1);
else
emsg(_(e_stringreq));
return FAIL;
@@ -749,7 +749,7 @@ check_for_string_or_list_or_dict_arg(typval_T *args, int idx)
&& args[idx].v_type != VAR_DICT)
{
if (idx >= 0)
semsg(_(e_string_or_list_or_dict_required_for_argument_nr), idx + 1);
semsg(_(e_string_list_or_dict_required_for_argument_nr), idx + 1);
else
emsg(_(e_stringreq));
return FAIL;
@@ -804,7 +804,7 @@ check_for_list_or_dict_or_blob_arg(typval_T *args, int idx)
&& args[idx].v_type != VAR_BLOB)
{
if (idx >= 0)
semsg(_(e_list_or_dict_or_blob_required_for_argument_nr), idx + 1);
semsg(_(e_list_dict_or_blob_required_for_argument_nr), idx + 1);
else
emsg(_(e_listreq));
return FAIL;