mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.1.0784: messy indent in if statement
Problem: Messy indent in if statement. Solution: Improve structure of if statement. (Ozaki Kiichi, closes #3826)
This commit is contained in:
@@ -1576,34 +1576,35 @@ WaitForChar(long msec, int ignore_input)
|
|||||||
dwWaitTime = p_mzq; /* don't wait longer than 'mzquantum' */
|
dwWaitTime = p_mzq; /* don't wait longer than 'mzquantum' */
|
||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_TIMERS
|
#ifdef FEAT_TIMERS
|
||||||
|
// When waiting very briefly don't trigger timers.
|
||||||
|
if (dwWaitTime > 10)
|
||||||
{
|
{
|
||||||
long due_time;
|
long due_time;
|
||||||
|
|
||||||
/* When waiting very briefly don't trigger timers. */
|
// Trigger timers and then get the time in msec until the next
|
||||||
if (dwWaitTime > 10)
|
// one is due. Wait up to that time.
|
||||||
|
due_time = check_due_timer();
|
||||||
|
if (typebuf.tb_change_cnt != tb_change_cnt)
|
||||||
{
|
{
|
||||||
/* Trigger timers and then get the time in msec until the
|
// timer may have used feedkeys().
|
||||||
* next one is due. Wait up to that time. */
|
return FALSE;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
if (due_time > 0 && dwWaitTime > (DWORD)due_time)
|
||||||
|
dwWaitTime = due_time;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
if (
|
||||||
#ifdef FEAT_CLIENTSERVER
|
#ifdef FEAT_CLIENTSERVER
|
||||||
/* Wait for either an event on the console input or a message in
|
// Wait for either an event on the console input or a
|
||||||
* the client-server window. */
|
// message in the client-server window.
|
||||||
if (msg_wait_for_multiple_objects(1, &g_hConIn, FALSE,
|
msg_wait_for_multiple_objects(1, &g_hConIn, FALSE,
|
||||||
dwWaitTime, QS_SENDMESSAGE) != WAIT_OBJECT_0)
|
dwWaitTime, QS_SENDMESSAGE) != WAIT_OBJECT_0
|
||||||
#else
|
#else
|
||||||
if (wait_for_single_object(g_hConIn, dwWaitTime) != WAIT_OBJECT_0)
|
wait_for_single_object(g_hConIn, dwWaitTime)
|
||||||
|
!= WAIT_OBJECT_0
|
||||||
#endif
|
#endif
|
||||||
continue;
|
)
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
cRecords = 0;
|
cRecords = 0;
|
||||||
|
@@ -791,6 +791,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
784,
|
||||||
/**/
|
/**/
|
||||||
783,
|
783,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user