mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 02:08:17 +00:00
vim-patch:8.2.1969: Vim9: map() may change the list or dict item type
Problem: Vim9: map() may change the list or dict item type.
Solution: Add mapnew().
ea696852e7
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -2097,12 +2097,6 @@ static void findfilendir(typval_T *argvars, typval_T *rettv, int find_what)
|
||||
}
|
||||
}
|
||||
|
||||
/// "filter()" function
|
||||
static void f_filter(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
{
|
||||
filter_map(argvars, rettv, false);
|
||||
}
|
||||
|
||||
/// "finddir({fname}[, {path}[, {count}]])" function
|
||||
static void f_finddir(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
{
|
||||
@@ -4488,12 +4482,6 @@ static void f_luaeval(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
nlua_typval_eval(cstr_as_string((char *)str), &argvars[1], rettv);
|
||||
}
|
||||
|
||||
/// "map()" function
|
||||
static void f_map(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
{
|
||||
filter_map(argvars, rettv, true);
|
||||
}
|
||||
|
||||
static void find_some_match(typval_T *const argvars, typval_T *const rettv,
|
||||
const SomeMatchType type)
|
||||
{
|
||||
|
Reference in New Issue
Block a user