comparison 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
comparison
equal deleted inserted replaced
31601:7282793ec66f 31602:53c3df37a2b0
1109 if (*expr != '=') 1109 if (*expr != '=')
1110 { 1110 {
1111 if (vim9script && (flags & ASSIGN_NO_DECL) == 0) 1111 if (vim9script && (flags & ASSIGN_NO_DECL) == 0)
1112 { 1112 {
1113 // +=, /=, etc. require an existing variable 1113 // +=, /=, etc. require an existing variable
1114 semsg(_(e_cannot_use_operator_on_new_variable), eap->arg); 1114 semsg(_(e_cannot_use_operator_on_new_variable_str),
1115 eap->arg);
1115 } 1116 }
1116 else if (vim_strchr((char_u *)"+-*/%.", *expr) != NULL) 1117 else if (vim_strchr((char_u *)"+-*/%.", *expr) != NULL)
1117 { 1118 {
1118 op[0] = *expr; // +=, -=, *=, /=, %= or .= 1119 op[0] = *expr; // +=, -=, *=, /=, %= or .=
1119 ++len; 1120 ++len;