diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-06 18:39:38 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-06 18:39:38 +0200 |
commit | 418155def2aa45afd7fc034db341dc874b00af3a (patch) | |
tree | da4e547acc14af8660bafcd96bb56ef94df8f255 /src/time.c | |
parent | ad30470610e228e66afb837fdbab6bea36c43de4 (diff) |
patch 8.2.1628: Vim9: cannot pass "true" to timer_paused()v8.2.1628
Problem: Vim9: cannot pass "true" to timer_paused().
Solution: Use tv_get_bool(). (closes #6891)
Diffstat (limited to 'src/time.c')
-rw-r--r-- | src/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time.c b/src/time.c index 89ff08bdf4..cc29d0d398 100644 --- a/src/time.c +++ b/src/time.c @@ -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)); |