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:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user