summaryrefslogtreecommitdiffstats
path: root/src/evalvars.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-01-02 18:10:04 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-02 18:10:04 +0000
commita9fa8c58fbcc5cf8850f6963c509de272f4d4bbf (patch)
tree891f3c44b937d7a4a7492b83826ca114c31f22ff /src/evalvars.c
parentdc4daa3a3915fba11ac87d27977240d9a5e0d47d (diff)
patch 9.0.1133: error message names do not match the itemsv9.0.1133
Problem: Error message names do not match the items. Solution: Add "_str" when the text contains "%s".
Diffstat (limited to 'src/evalvars.c')
-rw-r--r--src/evalvars.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/evalvars.c b/src/evalvars.c
index 389a9e4d18..e52f10ba3e 100644
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -1111,7 +1111,8 @@ ex_let(exarg_T *eap)
if (vim9script && (flags & ASSIGN_NO_DECL) == 0)
{
// +=, /=, etc. require an existing variable
- semsg(_(e_cannot_use_operator_on_new_variable), eap->arg);
+ semsg(_(e_cannot_use_operator_on_new_variable_str),
+ eap->arg);
}
else if (vim_strchr((char_u *)"+-*/%.", *expr) != NULL)
{