0
0
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:
Bram Moolenaar
2019-08-29 22:48:24 +02:00
parent e5cdf153bc
commit 34ed68d40e
4 changed files with 15 additions and 1 deletions

View File

@@ -1690,13 +1690,21 @@ get_user_var_name(expand_T *xp, int idx)
return NULL;
}
/*
* 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;
}