# HG changeset patch # User Bram Moolenaar # Date 1643382903 -3600 # Node ID b17fe5191b49c3a03076ff4bccb618d87bc921fc # Parent 08180df8bb90cfe954456f368b75a65379d9d0b8 patch 8.2.4240: error for using flatten() in Vim9 script is unclear Commit: https://github.com/vim/vim/commit/fb80862e49fcbcf47907fc8cdaaf5c41cb9eb06e Author: Bram Moolenaar Date: Fri Jan 28 15:01:47 2022 +0000 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(). diff --git a/src/errors.h b/src/errors.h --- a/src/errors.h +++ b/src/errors.h @@ -2944,7 +2944,7 @@ EXTERN char e_cannot_change_arglist_recu 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")); diff --git a/src/version.c b/src/version.c --- 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 */ /**/ + 4240, +/**/ 4239, /**/ 4238,