mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 8.2.1628: Vim9: cannot pass "true" to timer_paused()
Problem: Vim9: cannot pass "true" to timer_paused(). Solution: Use tv_get_bool(). (closes #6891)
This commit is contained in:
@@ -742,7 +742,7 @@ f_timer_info(typval_T *argvars, typval_T *rettv)
|
||||
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));
|
||||
|
Reference in New Issue
Block a user