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:
Jan Edmund Lazo
2019-06-15 12:56:55 -04:00
committed by Daniel Hahler
parent 5d5e16c2ed
commit b60c986a49

View File

@@ -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.