diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-09-24 08:10:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-24 08:10:49 +0800 |
commit | f3c842058ebc0ac475910726581a738d834955f6 (patch) | |
tree | a59e56b270f485470184858691c9894a5eb08279 | |
parent | ede66a0b85fcff44890cb34d71e22995eb621006 (diff) | |
download | rneovim-f3c842058ebc0ac475910726581a738d834955f6.tar.gz rneovim-f3c842058ebc0ac475910726581a738d834955f6.tar.bz2 rneovim-f3c842058ebc0ac475910726581a738d834955f6.zip |
vim-patch:9.0.0559: timer test may get stuck at hit-enter prompt (#20312)
Problem: Timer test may get stuck at hit-enter prompt.
Solution: Feed some more characters.
https://github.com/vim/vim/commit/4ecf16bbf951f10fd32c918c9d8bc004b7f8f7c9
-rw-r--r-- | src/nvim/testdir/test_timers.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_timers.vim b/src/nvim/testdir/test_timers.vim index 6adf503f14..b3a22614b0 100644 --- a/src/nvim/testdir/test_timers.vim +++ b/src/nvim/testdir/test_timers.vim @@ -349,11 +349,13 @@ func Test_nocatch_timer_garbage_collect() let a = {'foo', 'bar'} endfunc func FeedChar(id) - call feedkeys('x', 't') + call feedkeys(":\<CR>", 't') endfunc call timer_start(300, 'FeedChar') call timer_start(100, 'CauseAnError') - let x = getchar() + let x = getchar() " wait for error in timer + let x = getchar(0) " read any remaining chars + let x = getchar(0) set ut& call test_override('no_wait_return', 1) |