diff src/typval.c @ 25443:9ed6587bcc0f v8.2.3258

patch 8.2.3258: error messages have the wrong text Commit: https://github.com/vim/vim/commit/78db17c6f335f518752ca221ec6bde79db584e15 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 31 19:12:58 2021 +0200 patch 8.2.3258: error messages have the wrong text Problem: Error messages have the wrong text. Solution: Adjust the error message.
author Bram Moolenaar <Bram@vim.org>
date Sat, 31 Jul 2021 19:15:03 +0200
parents a6c347a0c6e3
children 763ea8f075db
line wrap: on
line diff
--- a/src/typval.c
+++ b/src/typval.c
@@ -718,7 +718,7 @@ check_for_string_or_number_or_list_arg(t
 	    && 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(typ
 	    && 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(typva
 	    && 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;