]> granicus.if.org Git - vim/commitdiff
patch 8.2.4240: error for using flatten() in Vim9 script is unclear v8.2.4240
authorBram Moolenaar <Bram@vim.org>
Fri, 28 Jan 2022 15:01:47 +0000 (15:01 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 28 Jan 2022 15:01:47 +0000 (15:01 +0000)
Problem:    Error for using flatten() in Vim9 script is unclear.
Solution:   Add a remark to use flattennew().

src/errors.h
src/version.c

index 6d3d06d26b93c7afb93e4407d2d02bc93fd4740a..da45df2100d99718eab986d57193e79f2d1e421e 100644 (file)
@@ -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"));
index 3d37eec6a276c326b4480f220c15c618b5cd5fc1..fff4e6dd3ff48ca561668406494b936a5d30376e 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4240,
 /**/
     4239,
 /**/