Skip to content

Commit

Permalink
patch 8.2.4240: error for using flatten() in Vim9 script is unclear
Browse files Browse the repository at this point in the history
Problem:    Error for using flatten() in Vim9 script is unclear.
Solution:   Add a remark to use flattennew().
  • Loading branch information
brammool committed Jan 28, 2022
1 parent ddd815b commit fb80862
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -2944,7 +2944,7 @@ EXTERN char e_cannot_change_arglist_recursively[]
EXTERN char e_missing_return_type[]
INIT(= N_("E1157: Missing return type"));
EXTERN char e_cannot_use_flatten_in_vim9_script[]
INIT(= N_("E1158: Cannot use flatten() in Vim9 script"));
INIT(= N_("E1158: Cannot use flatten() in Vim9 script, use flattennew()"));
#endif
EXTERN char e_cannot_split_window_when_closing_buffer[]
INIT(= N_("E1159: Cannot split a window when closing the buffer"));
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4240,
/**/
4239,
/**/
Expand Down

0 comments on commit fb80862

Please sign in to comment.