Mercurial > vim
diff src/evalvars.c @ 31602:53c3df37a2b0 v9.0.1133
patch 9.0.1133: error message names do not match the items
Commit: https://github.com/vim/vim/commit/a9fa8c58fbcc5cf8850f6963c509de272f4d4bbf
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 2 18:10:04 2023 +0000
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".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 02 Jan 2023 19:15:04 +0100 |
parents | f1d5ad2b978e |
children | 8707b2b5c45e |
line wrap: on
line diff
--- 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) {