Problem: Vim9: cannot pass "true" to timer_paused().
Solution: Use tv_get_bool(). (closes #6891)
bwipe!
enddef
+def Test_timer_paused()
+ let id = timer_start(50, {-> 0})
+ timer_pause(id, true)
+ let info = timer_info(id)
+ assert_equal(1, info[0]['paused'])
+ timer_stop(id)
+enddef
+
def Test_win_splitmove()
split
win_splitmove(1, 2, #{vertical: true, rightbelow: true})
f_timer_pause(typval_T *argvars, typval_T *rettv UNUSED)
{
timer_T *timer = NULL;
- int paused = (int)tv_get_number(&argvars[1]);
+ int paused = (int)tv_get_bool(&argvars[1]);
if (argvars[0].v_type != VAR_NUMBER)
emsg(_(e_number_exp));
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1628,
/**/
1627,
/**/