Skip to content

Commit cb908a8

Browse files
committed
patch 8.1.0842: getchar_zero test fails on MS-Windows
Problem: getchar_zero test fails on MS-Windows. Solution: Disable the test for now.
1 parent 2339fa3 commit cb908a8

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

src/testdir/test_timers.vim

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,21 +251,28 @@ func Test_peek_and_get_char()
251251
endfunc
252252

253253
func Test_getchar_zero()
254-
call timer_start(20, {id -> feedkeys('x', 'L')})
254+
if has('win32')
255+
" Console: no low-level input
256+
" GUI: somehow doesn't work
257+
return
258+
endif
259+
260+
let id = timer_start(20, {id -> feedkeys('x', 'L')})
255261
let c = 0
256262
while c == 0
257263
let c = getchar(0)
258264
sleep 10m
259265
endwhile
260266
call assert_equal('x', nr2char(c))
267+
call timer_stop(id)
261268
endfunc
262269

263270
func Test_ex_mode()
264271
" Function with an empty line.
265272
func Foo(...)
266273

267274
endfunc
268-
let timer = timer_start(40, function('g:Foo'), {'repeat':-1})
275+
let timer = timer_start(40, function('g:Foo'), {'repeat':-1})
269276
" This used to throw error E749.
270277
exe "normal Qsleep 100m\rvi\r"
271278
call timer_stop(timer)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,8 @@ static char *(features[]) =
783783

784784
static int included_patches[] =
785785
{ /* Add new patch number below this line */
786+
/**/
787+
842,
786788
/**/
787789
841,
788790
/**/

0 commit comments

Comments
 (0)