Problem: Vim9: cannot pass boolean to mapset().
Solution: Use get_tv_bool(). (closes #7041)
if (which == NULL)
return;
mode = get_map_mode(&which, 0);
- is_abbr = (int)tv_get_number(&argvars[1]);
+ is_abbr = (int)tv_get_bool(&argvars[1]);
if (argvars[2].v_type != VAR_DICT)
{
iunabbrev foo
enddef
+def Test_maparg_mapset()
+ nnoremap <F3> :echo "hit F3"<CR>
+ var mapsave = maparg('<F3>', 'n', false, true)
+ mapset('n', false, mapsave)
+
+ nunmap <F3>
+enddef
+
def Test_nr2char()
nr2char(97, true)->assert_equal('a')
enddef
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1782,
/**/
1781,
/**/