mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.1.1940: script tests fail
Problem: Script tests fail. Solution: Don't set vimvars type in set_vim_var_nr().
This commit is contained in:
@@ -7879,6 +7879,7 @@ filter_map(typval_T *argvars, typval_T *rettv, int map)
|
||||
int i;
|
||||
typval_T tv;
|
||||
|
||||
set_vim_var_type(VV_KEY, VAR_NUMBER);
|
||||
for (i = 0; i < b->bv_ga.ga_len; i++)
|
||||
{
|
||||
tv.v_type = VAR_NUMBER;
|
||||
@@ -7907,6 +7908,8 @@ filter_map(typval_T *argvars, typval_T *rettv, int map)
|
||||
else
|
||||
{
|
||||
// argvars[0].v_type == VAR_LIST
|
||||
set_vim_var_type(VV_KEY, VAR_NUMBER);
|
||||
|
||||
for (li = l->lv_first; li != NULL; li = nli)
|
||||
{
|
||||
if (map && var_check_lock(li->li_tv.v_lock, arg_errmsg, TRUE))
|
||||
|
Reference in New Issue
Block a user