patch 8.2.4240: error for using flatten() in Vim9 script is unclear

Problem:    Error for using flatten() in Vim9 script is unclear.
Solution:   Add a remark to use flattennew().
This commit is contained in:
Bram Moolenaar
2022-01-28 15:01:47 +00:00
parent ddd815ba2a
commit fb80862e49
2 changed files with 3 additions and 1 deletions

View File

@ -2944,7 +2944,7 @@ EXTERN char e_cannot_change_arglist_recursively[]
EXTERN char e_missing_return_type[] EXTERN char e_missing_return_type[]
INIT(= N_("E1157: Missing return type")); INIT(= N_("E1157: Missing return type"));
EXTERN char e_cannot_use_flatten_in_vim9_script[] 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 #endif
EXTERN char e_cannot_split_window_when_closing_buffer[] EXTERN char e_cannot_split_window_when_closing_buffer[]
INIT(= N_("E1159: Cannot split a window when closing the buffer")); INIT(= N_("E1159: Cannot split a window when closing the buffer"));

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
4240,
/**/ /**/
4239, 4239,
/**/ /**/