1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2020-09-05 18:48:57 +02:00
parent 04637e243d
commit 636c5d5399
2 changed files with 4 additions and 0 deletions

View File

@@ -1506,6 +1506,8 @@ def Test_getbufinfo()
enddef enddef
def Test_getchar() def Test_getchar()
while getchar(0)
endwhile
assert_equal(0, getchar(true)) assert_equal(0, getchar(true))
enddef enddef

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1607,
/**/ /**/
1606, 1606,
/**/ /**/