changeset 22115:6c3123ea53c3 v8.2.1607

patch 8.2.1607: Vim9: getchar() test fails on MS-Windows Commit: https://github.com/vim/vim/commit/636c5d5399e1a42e8eb5bcb5fede318438d2347a Author: Bram Moolenaar <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Sep 2020 19:00:04 +0200
parents e3c12e8b91b0
children 029ba7a35f7f
files src/testdir/test_vim9_func.vim src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
 
--- 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,