Mercurial > vim
comparison src/vim9script.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 | 307f68a41b03 |
children | 0eb51cec2154 |
comparison
equal
deleted
inserted
replaced
31601:7282793ec66f | 31602:53c3df37a2b0 |
---|---|
1136 && !(STRCMP("this", name) == 0 | 1136 && !(STRCMP("this", name) == 0 |
1137 && cctx != NULL | 1137 && cctx != NULL |
1138 && cctx->ctx_ufunc != NULL | 1138 && cctx->ctx_ufunc != NULL |
1139 && (cctx->ctx_ufunc->uf_flags & FC_OBJECT))) | 1139 && (cctx->ctx_ufunc->uf_flags & FC_OBJECT))) |
1140 { | 1140 { |
1141 semsg(_(e_cannot_use_reserved_name), name); | 1141 semsg(_(e_cannot_use_reserved_name_str), name); |
1142 return FAIL; | 1142 return FAIL; |
1143 } | 1143 } |
1144 return OK; | 1144 return OK; |
1145 } | 1145 } |
1146 | 1146 |