Problem: Vim9: cannot pass "true" to spellsuggest().
Solution: Use tv_get_bool_chk(). (closes #6883)
return;
if (argvars[2].v_type != VAR_UNKNOWN)
{
- need_capital = (int)tv_get_number_chk(&argvars[2], &typeerr);
+ need_capital = (int)tv_get_bool_chk(&argvars[2], &typeerr);
if (typeerr)
return;
}
assert_equal(reginfo, getreginfo('a'))
enddef
+def Test_spellsuggest()
+ if !has('spell')
+ MissingFeature 'spell'
+ else
+ spellsuggest('marrch', 1, true)->assert_equal(['March'])
+ endif
+enddef
+
def Test_synID()
new
setline(1, "text")
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1619,
/**/
1618,
/**/