patch 9.0.1133: error message names do not match the items
Problem: Error message names do not match the items.
Solution: Add "_str" when the text contains "%s".
diff --git a/src/userfunc.c b/src/userfunc.c
index f3e4757..758b9ea 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -4599,7 +4599,8 @@
if (!aborting())
{
if (!eap->skip && fudi.fd_newkey != NULL)
- semsg(_(e_key_not_present_in_dictionary), fudi.fd_newkey);
+ semsg(_(e_key_not_present_in_dictionary_str),
+ fudi.fd_newkey);
vim_free(fudi.fd_newkey);
return NULL;
}
@@ -4847,7 +4848,7 @@
p += 7;
if (current_funccal == NULL)
{
- emsg_funcname(e_closure_function_should_not_be_at_top_level,
+ emsg_funcname(e_closure_function_should_not_be_at_top_level_str,
name == NULL ? (char_u *)"" : name);
goto erret;
}
@@ -6058,7 +6059,7 @@
if (fudi.fd_newkey != NULL)
{
// Still need to give an error message for missing key.
- semsg(_(e_key_not_present_in_dictionary), fudi.fd_newkey);
+ semsg(_(e_key_not_present_in_dictionary_str), fudi.fd_newkey);
vim_free(fudi.fd_newkey);
}
if (tofree == NULL)