diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-02-01 20:14:51 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-02-01 20:14:51 +0100 |
commit | 3b690069730805a147d45d92eaca4dc838272d1d (patch) | |
tree | 47e970336167b1b23d8fac9e97b12cb76f159dd7 /src/proto/list.pro | |
parent | 9d20daffc296b9eb901fb14bdd83620ea55d440a (diff) |
patch 8.2.2449: Vim9: flatten() always changes the list typev8.2.2449
Problem: Vim9: flatten() always changes the list type.
Solution: Disallow using flatten() and add flattennew().
Diffstat (limited to 'src/proto/list.pro')
-rw-r--r-- | src/proto/list.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/list.pro b/src/proto/list.pro index 7c9ddaef13..4ccc897808 100644 --- a/src/proto/list.pro +++ b/src/proto/list.pro @@ -31,6 +31,7 @@ int list_append_number(list_T *l, varnumber_T n); 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); |