diff src/proto/list.pro @ 23816:525c9e218c69

patch 8.2.2449: Vim9: flatten() always changes the list type Commit: https://github.com/vim/vim/commit/3b690069730805a147d45d92eaca4dc838272d1d Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 1 20:14:51 2021 +0100 patch 8.2.2449: Vim9: flatten() always changes the list type Problem: Vim9: flatten() always changes the list type. Solution: Disallow using flatten() and add flattennew().
author Bram Moolenaar <Bram@vim.org>
date Mon, 01 Feb 2021 20:15:04 +0100
parents 1816ea68c022
children 9fcd71d0db89
line wrap: on
line diff
--- a/src/proto/list.pro
+++ b/src/proto/list.pro
@@ -31,6 +31,7 @@ int list_append_number(list_T *l, varnum
 int list_insert_tv(list_T *l, typval_T *tv, listitem_T *item);
 void list_insert(list_T *l, listitem_T *ni, listitem_T *item);
 void f_flatten(typval_T *argvars, typval_T *rettv);
+void f_flattennew(typval_T *argvars, typval_T *rettv);
 int list_extend(list_T *l1, list_T *l2, listitem_T *bef);
 int list_concat(list_T *l1, list_T *l2, typval_T *tv);
 list_T *list_slice(list_T *ol, long n1, long n2);