Redraw the screen each 20 retries
This allows us to eyeball why something is failing
This commit is contained in:
parent
f0785c11f2
commit
42cdff043a
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue