]> granicus.if.org Git - vim/commitdiff
patch 8.2.1607: Vim9: getchar() test fails on MS-Windows v8.2.1607
authorBram Moolenaar <Bram@vim.org>
Sat, 5 Sep 2020 16:48:57 +0000 (18:48 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 5 Sep 2020 16:48:57 +0000 (18:48 +0200)
Problem:    Vim9: getchar() test fails on MS-Windows.
Solution:   First consume any available input.

src/testdir/test_vim9_func.vim
src/version.c

index dcc8087f4d73a0860bea23dacc097a1671db7067..a80767ad2aa9788a6add3c22f176b3a36426597b 100644 (file)
@@ -1506,6 +1506,8 @@ def Test_getbufinfo()
 enddef
 
 def Test_getchar()
+  while getchar(0)
+  endwhile
   assert_equal(0, getchar(true))
 enddef
 
index 70f736d15e5f8d26207f93151171d0d71f52cf9a..c306c8858741db2fd0d5ab2358b806a4fe903e40 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1607,
 /**/
     1606,
 /**/