diff 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
line wrap: on
line diff
--- a/src/vim9script.c
+++ b/src/vim9script.c
@@ -1138,7 +1138,7 @@ check_reserved_name(char_u *name, cctx_T
 		    && cctx->ctx_ufunc != NULL
 		    && (cctx->ctx_ufunc->uf_flags & FC_OBJECT)))
 	{
-	    semsg(_(e_cannot_use_reserved_name), name);
+	    semsg(_(e_cannot_use_reserved_name_str), name);
 	    return FAIL;
 	}
     return OK;