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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user