Mercurial > vim
diff src/time.c @ 22157:ba81f5e300b7 v8.2.1628
patch 8.2.1628: Vim9: cannot pass "true" to timer_paused()
Commit: https://github.com/vim/vim/commit/418155def2aa45afd7fc034db341dc874b00af3a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 6 18:39:38 2020 +0200
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 https://github.com/vim/vim/issues/6891)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 06 Sep 2020 18:45:03 +0200 |
parents | 2e7acc208a1f |
children | 20ccf5f7dc6d |
line wrap: on
line diff
--- a/src/time.c +++ b/src/time.c @@ -742,7 +742,7 @@ f_timer_info(typval_T *argvars, typval_T 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));