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(" \<Esc>", '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(" \<Esc>", '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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20211212164245.6291D1C0D69%40moolenaar.net.

Raspunde prin e-mail lui