Patch 8.2.2076
Problem:    MS-Windows console: sometimes drops typed characters.
Solution:   Do not wait longer than 10 msec for input. (issue #7164)
Files:      src/os_win32.c


*** ../vim-8.2.2075/src/os_win32.c      2020-11-10 22:03:37.027341067 +0100
--- src/os_win32.c      2020-12-01 21:24:51.469772668 +0100
***************
*** 1588,1613 ****
        {
            DWORD dwWaitTime = dwEndTime - dwNow;
  
! # ifdef FEAT_JOB_CHANNEL
!           // Check channel while waiting for input.
!           if (dwWaitTime > 100)
!           {
!               dwWaitTime = 100;
!               // If there is readahead then parse_queued_messages() timed out
!               // and we should call it again soon.
!               if (channel_any_readahead())
!                   dwWaitTime = 10;
!           }
! # endif
! # ifdef FEAT_BEVAL_GUI
!           if (p_beval && dwWaitTime > 100)
!               // The 'balloonexpr' may indirectly invoke a callback while
!               // waiting for a character, need to check often.
!               dwWaitTime = 100;
! # endif
  # ifdef FEAT_MZSCHEME
!           if (mzthreads_allowed() && p_mzq > 0
!                                   && (msec < 0 || (long)dwWaitTime > p_mzq))
                dwWaitTime = p_mzq; // don't wait longer than 'mzquantum'
  # endif
  # ifdef FEAT_TIMERS
--- 1588,1601 ----
        {
            DWORD dwWaitTime = dwEndTime - dwNow;
  
!           // Don't wait for more than 11 msec to avoid dropping characters,
!           // check channel while waiting for input and handle a callback from
!           // 'balloonexpr'.
!           if (dwWaitTime > 11)
!               dwWaitTime = 11;
! 
  # ifdef FEAT_MZSCHEME
!           if (mzthreads_allowed() && p_mzq > 0 && (long)dwWaitTime > p_mzq)
                dwWaitTime = p_mzq; // don't wait longer than 'mzquantum'
  # endif
  # ifdef FEAT_TIMERS
*** ../vim-8.2.2075/src/version.c       2020-12-01 21:08:01.969599029 +0100
--- src/version.c       2020-12-01 21:26:51.205348465 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2076,
  /**/

-- 
GUEST:        He's killed the best man!
SECOND GUEST: (holding a limp WOMAN) He's killed my auntie.
FATHER:       No, please!  This is supposed to be a happy occasion!  Let's
              not bicker and argue about who killed who ...
                 "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/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            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/202012012028.0B1KSOrg3904948%40masaka.moolenaar.net.

Raspunde prin e-mail lui