0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0282: Vim9: setting number option not tested

Problem:    Vim9: setting number option not tested.
Solution:   Add more tests.   Fix assigning to global variable.
This commit is contained in:
Bram Moolenaar
2020-02-19 18:14:44 +01:00
parent a2f6e42ded
commit 401d9ffb5a
4 changed files with 19 additions and 6 deletions

View File

@@ -726,8 +726,10 @@ call_def_function(
int reg = iptr->isn_arg.number;
--ectx.ec_stack.ga_len;
tv = STACK_TV_BOT(0);
write_reg_contents(reg == '@' ? '"' : reg,
tv_get_string(STACK_TV_BOT(0)), -1, FALSE);
tv_get_string(tv), -1, FALSE);
clear_tv(tv);
}
break;
@@ -746,7 +748,7 @@ call_def_function(
--ectx.ec_stack.ga_len;
di = find_var_in_ht(get_globvar_ht(), 0,
iptr->isn_arg.string, TRUE);
iptr->isn_arg.string + 2, TRUE);
if (di == NULL)
{
funccal_entry_T entry;