Mercurial > vim
diff src/eval.c @ 17887:39ffd167a307 v8.1.1940
patch 8.1.1940: script tests fail
Commit: https://github.com/vim/vim/commit/34ed68d40eb9c71f34a44b94263f5e7e6856cba0
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 29 22:48:24 2019 +0200
patch 8.1.1940: script tests fail
Problem: Script tests fail.
Solution: Don't set vimvars type in set_vim_var_nr().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 29 Aug 2019 23:00:03 +0200 |
parents | 5e2d8840da11 |
children | e4d3b6c466d4 |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -7879,6 +7879,7 @@ filter_map(typval_T *argvars, typval_T * 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 * 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))