neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit f3c842058ebc0ac475910726581a738d834955f6
parent ede66a0b85fcff44890cb34d71e22995eb621006
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sat, 24 Sep 2022 08:10:49 +0800

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
Diffstat:
Msrc/nvim/testdir/test_timers.vim | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 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)