changeset 28160:859b037faea8 v8.2.4604

patch 8.2.4604: error for redefining a script item may be confusing Commit: https://github.com/vim/vim/commit/6d877fe0181bdaf382bfc87898e1ddf6e3c78e66 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 21 19:47:31 2022 +0000 patch 8.2.4604: error for redefining a script item may be confusing Problem: Error for redefining a script item may be confusing. Solution: Put quotes around the name.
author Bram Moolenaar <Bram@vim.org>
date Mon, 21 Mar 2022 21:00:06 +0100
parents 19971610adcd
children acfb2cedbe8d
files src/errors.h src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/errors.h
+++ b/src/errors.h
@@ -2715,7 +2715,7 @@ EXTERN char e_cannot_use_scriptversion_a
 	INIT(= N_("E1040: Cannot use :scriptversion after :vim9script"));
 #ifdef FEAT_EVAL
 EXTERN char e_redefining_script_item_str[]
-	INIT(= N_("E1041: Redefining script item %s"));
+	INIT(= N_("E1041: Redefining script item: \"%s\""));
 EXTERN char e_export_can_only_be_used_in_vim9script[]
 	INIT(= N_("E1042: Export can only be used in vim9script"));
 EXTERN char e_invalid_command_after_export[]
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4604,
+/**/
     4603,
 /**/
     4602,