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/evalfunc.c | |
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/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index f0a15f98ca..0b4b5021ad 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -954,6 +954,8 @@ static funcentry_T global_functions[] = ret_string, f_findfile}, {"flatten", 1, 2, FEARG_1, NULL, ret_list_any, f_flatten}, + {"flattennew", 1, 2, FEARG_1, NULL, + ret_list_any, f_flattennew}, {"float2nr", 1, 1, FEARG_1, NULL, ret_number, FLOAT_FUNC(f_float2nr)}, {"floor", 1, 1, FEARG_1, NULL, |