comparison src/testdir/test_timers.vim @ 15687:cb501b3c9fb5 v8.1.0851

patch 8.1.0851: feedkeys() with "L" does not work properly commit https://github.com/vim/vim/commit/8d4ce56a19ed14d13332f94ad592fff2d9a715d5 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 30 22:01:40 2019 +0100 patch 8.1.0851: feedkeys() with "L" does not work properly Problem: feedkeys() with "L" does not work properly. Solution: Do not set typebuf_was_filled when using "L". (Ozaki Kiichi, closes #3885)
author Bram Moolenaar <Bram@vim.org>
date Wed, 30 Jan 2019 22:15:07 +0100
parents 2973d8252740
children ba7727889385
comparison
equal deleted inserted replaced
15686:5faaf013acd4 15687:cb501b3c9fb5
249 call assert_equal(char2nr('a'), c) 249 call assert_equal(char2nr('a'), c)
250 call timer_stop(intr) 250 call timer_stop(intr)
251 endfunc 251 endfunc
252 252
253 func Test_getchar_zero() 253 func Test_getchar_zero()
254 if has('win32') 254 if has('win32') && !has('gui_running')
255 " Console: no low-level input 255 " Console: no low-level input
256 " GUI: somehow doesn't work
257 return 256 return
258 endif 257 endif
259 258
260 " Measure the elapsed time to avoid a hang when it fails. 259 " Measure the elapsed time to avoid a hang when it fails.
261 let start = reltime() 260 let start = reltime()
262 let id = timer_start(20, {id -> feedkeys('x', 'L')}) 261 let id = timer_start(20, {-> feedkeys('x', 'L')})
263 let c = 0 262 let c = 0
264 while c == 0 && reltimefloat(reltime(start)) < 0.2 263 while c == 0 && reltimefloat(reltime(start)) < 0.2
265 let c = getchar(0) 264 let c = getchar(0)
266 sleep 10m 265 sleep 10m
267 endwhile 266 endwhile