To: vim_dev@googlegroups.com Subject: Patch 8.2.3789 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3789 Problem: Test_window_minimal_size can fail on a slow machine. Solution: Do not rely on timers firing at the expected time. (Ozaki Kiichi, closes #9335) Files: src/testdir/test_window_cmd.vim *** ../vim-8.2.3788/src/testdir/test_window_cmd.vim 2021-12-09 11:57:19.159557375 +0000 --- src/testdir/test_window_cmd.vim 2021-12-12 16:36:46.539396234 +0000 *************** *** 1379,1391 **** if has('timers') " check size is fixed in Insert mode new ! call timer_start(100, {_ -> win_execute(win_getid(2), 'wincmd _')}) ! call timer_start(200, {_ -> assert_equal(0, winheight(0))}) ! call timer_start(300, {_ -> feedkeys(" \", 't!')}) call feedkeys('a', 'tx!') call assert_equal(1, winheight(0)) bwipe! endif set winminwidth& winminheight& --- 1379,1395 ---- if has('timers') " check size is fixed in Insert mode + func s:CheckSize(timer) abort + call win_execute(win_getid(2), 'wincmd _') + call assert_equal(0, winheight(0)) + call feedkeys(" \", 't!') + endfunc new ! call timer_start(100, function('s:CheckSize')) call feedkeys('a', 'tx!') call assert_equal(1, winheight(0)) bwipe! + delfunc s:CheckSize endif set winminwidth& winminheight& *** ../vim-8.2.3788/src/version.c 2021-12-12 16:26:35.872627594 +0000 --- src/version.c 2021-12-12 16:39:02.747137662 +0000 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 3789, /**/ -- How To Keep A Healthy Level Of Insanity: 17. When the money comes out the ATM, scream "I won!, I won! 3rd time this week!!!!!" /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///