Redraw the screen each 20 retries

This allows us to eyeball why something is failing
This commit is contained in:
Ben Jackson 2020-11-20 23:18:56 +00:00
commit 42cdff043a

View file

@ -51,7 +51,10 @@ func s:WaitForCommon(expr, assert, timeout)
let start = reltime()
endif
let iters = 0
while 1
let iters += 1
let errors_before = len( v:errors )
if type(a:expr) == v:t_func
let success = a:expr()
@ -65,6 +68,10 @@ func s:WaitForCommon(expr, assert, timeout)
return slept
endif
if iters % 20 == 0
redraw!
endif
if slept >= a:timeout
break
endif