Patch 8.2.4577
Problem:    Message test is flaky. (Elimar Riesebieter)
Solution:   Trigger the autocommand event only after startup is finished.
Files:      src/testdir/test_messages.vim


*** ../vim-8.2.4576/src/testdir/test_messages.vim       2022-01-24 
11:40:33.944693856 +0000
--- src/testdir/test_messages.vim       2022-03-16 11:09:57.267222304 +0000
***************
*** 360,371 ****
  
      hide buffer a.txt
  
!     set updatetime=1
!     autocmd CursorHold * b b.txt | w | echo "'b' written"
    END
  
    call writefile(content, 'Xtest_fileinfo_after_echo')
    let buf = RunVimInTerminal('-S Xtest_fileinfo_after_echo', #{rows: 6})
    call VerifyScreenDump(buf, 'Test_fileinfo_after_echo', {})
  
    call term_sendkeys(buf, ":q\<CR>")
--- 360,372 ----
  
      hide buffer a.txt
  
!     autocmd CursorHold * buf b.txt | w | echo "'b' written"
    END
  
    call writefile(content, 'Xtest_fileinfo_after_echo')
    let buf = RunVimInTerminal('-S Xtest_fileinfo_after_echo', #{rows: 6})
+   call term_sendkeys(buf, ":set updatetime=50\<CR>")
+   call term_sendkeys(buf, "0$")
    call VerifyScreenDump(buf, 'Test_fileinfo_after_echo', {})
  
    call term_sendkeys(buf, ":q\<CR>")
*** ../vim-8.2.4576/src/version.c       2022-03-15 20:21:26.401378126 +0000
--- src/version.c       2022-03-16 11:13:20.602483190 +0000
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     4577,
  /**/

-- 
GALAHAD:   Camelot ...
LAUNCELOT: Camelot ...
GAWAIN:    It's only a model.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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/20220316111526.1D9E61C0497%40moolenaar.net.

Raspunde prin e-mail lui