Mercurial > vim
diff src/evalvars.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/evalvars.c +++ b/src/evalvars.c @@ -1691,12 +1691,20 @@ get_user_var_name(expand_T *xp, int idx) } /* + * Set type of v: variable to "type". + */ + void +set_vim_var_type(int idx, vartype_T type) +{ + vimvars[idx].vv_type = type; +} + +/* * Set number v: variable to "val". */ void set_vim_var_nr(int idx, varnumber_T val) { - vimvars[idx].vv_type = VAR_NUMBER; vimvars[idx].vv_nr = val; }