Mercurial > vim
diff src/evalfunc.c @ 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 | 007fa6365dfb |
children | a45a922832d4 |
line wrap: on
line diff
--- 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,