Skip to content

Commit 6d877fe

Browse files
committed
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.
1 parent 85b43c6 commit 6d877fe

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/errors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2715,7 +2715,7 @@ EXTERN char e_cannot_use_scriptversion_after_vim9script[]
27152715
INIT(= N_("E1040: Cannot use :scriptversion after :vim9script"));
27162716
#ifdef FEAT_EVAL
27172717
EXTERN char e_redefining_script_item_str[]
2718-
INIT(= N_("E1041: Redefining script item %s"));
2718+
INIT(= N_("E1041: Redefining script item: \"%s\""));
27192719
EXTERN char e_export_can_only_be_used_in_vim9script[]
27202720
INIT(= N_("E1042: Export can only be used in vim9script"));
27212721
EXTERN char e_invalid_command_after_export[]

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
4604,
753755
/**/
754756
4603,
755757
/**/

0 commit comments

Comments
 (0)