mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 19:06:31 +00:00
vim-patch:8.0.1245: when WaitFor() has a wrong expression it just waits a second (#10233)
Problem: When WaitFor() has a wrong expression it just waits a second,
which goes unnoticed. (James McCoy)
Solution: When WaitFor() times out throw an exception. Fix places where the
expression was wrong.
3e1c617d49
This commit is contained in:

committed by
Daniel Hahler

parent
5d5e16c2ed
commit
b60c986a49
@@ -156,7 +156,7 @@ func WaitFor(expr, ...)
|
|||||||
endif
|
endif
|
||||||
sleep 10m
|
sleep 10m
|
||||||
endfor
|
endfor
|
||||||
return timeout
|
throw 'WaitFor() timed out after ' . timeout . ' msec'
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" Wait for up to a given milliseconds.
|
" Wait for up to a given milliseconds.
|
||||||
|
Reference in New Issue
Block a user