1
0
forked from aniani/vim

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

@@ -1678,6 +1678,14 @@ def Test_term_start()
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})