diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-15 12:56:55 -0400 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-06-15 18:56:55 +0200 |
commit | b60c986a49ed54042a5bf6dfba3ce26ae084aa47 (patch) | |
tree | 83b73ca452ebdc911e0084625a665333dfb41693 /src | |
parent | 5d5e16c2edca4f3fc8325dcbb368fd5937323223 (diff) | |
download | rneovim-b60c986a49ed54042a5bf6dfba3ce26ae084aa47.tar.gz rneovim-b60c986a49ed54042a5bf6dfba3ce26ae084aa47.tar.bz2 rneovim-b60c986a49ed54042a5bf6dfba3ce26ae084aa47.zip |
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.
https://github.com/vim/vim/commit/3e1c617d49224038a820ee2c552ebe31a84aaa89
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/shared.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/testdir/shared.vim b/src/nvim/testdir/shared.vim index 29af05fe3f..5dea33e2ac 100644 --- a/src/nvim/testdir/shared.vim +++ b/src/nvim/testdir/shared.vim @@ -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. |