mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56: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
|
||||
sleep 10m
|
||||
endfor
|
||||
return timeout
|
||||
throw 'WaitFor() timed out after ' . timeout . ' msec'
|
||||
endfunc
|
||||
|
||||
" Wait for up to a given milliseconds.
|
||||
|
Reference in New Issue
Block a user