# HG changeset patch # User Bram Moolenaar # Date 1599325204 -7200 # Node ID 6c3123ea53c3d185c93e2efb53279dbf18ae6a0d # Parent e3c12e8b91b0d733c58455865df6f51a10c24088 patch 8.2.1607: Vim9: getchar() test fails on MS-Windows Commit: https://github.com/vim/vim/commit/636c5d5399e1a42e8eb5bcb5fede318438d2347a Author: Bram Moolenaar Date: Sat Sep 5 18:48:57 2020 +0200 patch 8.2.1607: Vim9: getchar() test fails on MS-Windows Problem: Vim9: getchar() test fails on MS-Windows. Solution: First consume any available input. diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim --- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -1506,6 +1506,8 @@ def Test_getbufinfo() enddef def Test_getchar() + while getchar(0) + endwhile assert_equal(0, getchar(true)) enddef diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1607, +/**/ 1606, /**/ 1605,