Patch 8.1.0784
Problem:    Messy indent in if statement.
Solution:   Improve structure of if statement. (Ozaki Kiichi, closes #3826)
Files:      src/os_win32.c


*** ../vim-8.1.0783/src/os_win32.c      2019-01-19 17:43:03.425449092 +0100
--- src/os_win32.c      2019-01-19 21:09:31.750936487 +0100
***************
*** 1576,1609 ****
                dwWaitTime = p_mzq; /* don't wait longer than 'mzquantum' */
  #endif
  #ifdef FEAT_TIMERS
            {
                long    due_time;
  
!               /* When waiting very briefly don't trigger timers. */
!               if (dwWaitTime > 10)
                {
!                   /* Trigger timers and then get the time in msec until the
!                    * next one is due.  Wait up to that time. */
!                   due_time = check_due_timer();
!                   if (typebuf.tb_change_cnt != tb_change_cnt)
!                   {
!                       /* timer may have used feedkeys() */
!                       return FALSE;
!                   }
!                   if (due_time > 0 && dwWaitTime > (DWORD)due_time)
!                       dwWaitTime = due_time;
                }
            }
  #endif
  #ifdef FEAT_CLIENTSERVER
!           /* Wait for either an event on the console input or a message in
!            * the client-server window. */
!           if (msg_wait_for_multiple_objects(1, &g_hConIn, FALSE,
!                                dwWaitTime, QS_SENDMESSAGE) != WAIT_OBJECT_0)
  #else
!           if (wait_for_single_object(g_hConIn, dwWaitTime) != WAIT_OBJECT_0)
  #endif
!                   continue;
        }
  
        cRecords = 0;
--- 1576,1610 ----
                dwWaitTime = p_mzq; /* don't wait longer than 'mzquantum' */
  #endif
  #ifdef FEAT_TIMERS
+           // When waiting very briefly don't trigger timers.
+           if (dwWaitTime > 10)
            {
                long    due_time;
  
!               // Trigger timers and then get the time in msec until the next
!               // one is due.  Wait up to that time.
!               due_time = check_due_timer();
!               if (typebuf.tb_change_cnt != tb_change_cnt)
                {
!                   // timer may have used feedkeys().
!                   return FALSE;
                }
+               if (due_time > 0 && dwWaitTime > (DWORD)due_time)
+                   dwWaitTime = due_time;
            }
  #endif
+           if (
  #ifdef FEAT_CLIENTSERVER
!                   // Wait for either an event on the console input or a
!                   // message in the client-server window.
!                   msg_wait_for_multiple_objects(1, &g_hConIn, FALSE,
!                                 dwWaitTime, QS_SENDMESSAGE) != WAIT_OBJECT_0
  #else
!                   wait_for_single_object(g_hConIn, dwWaitTime)
!                                                             != WAIT_OBJECT_0
  #endif
!                   )
!               continue;
        }
  
        cRecords = 0;
*** ../vim-8.1.0783/src/version.c       2019-01-19 21:06:55.348138753 +0100
--- src/version.c       2019-01-19 21:12:16.405673931 +0100
***************
*** 793,794 ****
--- 793,796 ----
  {   /* Add new patch number below this line */
+ /**/
+     784,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
265. Your reason for not staying in touch with family is that
     they do not have e-mail addresses.

 /// 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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui