0
0
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:
Bram Moolenaar
2020-09-06 18:39:38 +02:00
parent ad30470610
commit 418155def2
3 changed files with 11 additions and 1 deletions

View File

@@ -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));