Problem: Debugging where a delay comes from is not easy.
Solution: Use different values when calling ui_delay().
if (emsg_silent == 0)
{
out_flush();
- ui_delay(3000L, TRUE); /* make sure it is noticed */
+ ui_delay(3001L, TRUE); // make sure it is noticed
}
top_file_num = 1;
}
)
{
out_flush();
- ui_delay(1000L, TRUE); // give the user time to think about it
+ ui_delay(1002L, TRUE); // give the user time to think about it
}
curbuf->b_did_warn = TRUE;
redraw_cmdline = FALSE; // don't redraw and erase the message
if (need_wait_return && emsg_silent == 0)
{
out_flush();
- ui_delay(2000L, TRUE);
+ ui_delay(2002L, TRUE);
wait_return(TRUE);
msg_scroll = save_msg_scroll;
}
if (!focus)
#endif
/* give the user some time to think about it */
- ui_delay(1000L, TRUE);
+ ui_delay(1004L, TRUE);
/* don't redraw and erase the message */
redraw_cmdline = FALSE;
}
if (pipe_error)
- ui_delay(300L, TRUE);
+ ui_delay(301L, TRUE);
/* When swapping screens we may need to go to the next line, e.g.,
* after a hit-enter prompt and using ":gui". */
time_t now;
XEvent event;
-#define UI_MSEC_DELAY 50
+#define UI_MSEC_DELAY 53
#define SEND_MSEC_POLL 500
#ifndef HAVE_SELECT
struct pollfd fds;
#ifdef FEAT_EVAL
if (!get_vim_var_nr(VV_TESTING))
#endif
- ui_delay(2000L, FALSE);
+ ui_delay(2004L, FALSE);
}
return FALSE;
}
if (parmp->tty_fail && (!stdout_isatty || !input_isatty))
exit(1);
if (scriptin[0] == NULL)
- ui_delay(2000L, TRUE);
+ ui_delay(2005L, TRUE);
TIME_MSG("Warning delay");
}
}
cursor_on();
out_flush();
if (msg_scroll || emsg_on_display)
- ui_delay(1000L, TRUE); /* wait at least one second */
- ui_delay(3000L, FALSE); /* wait up to three seconds */
+ ui_delay(1003L, TRUE); /* wait at least one second */
+ ui_delay(3003L, FALSE); /* wait up to three seconds */
State = save_State;
msg_scroll = FALSE;
&& emsg_silent == 0)
{
out_flush();
- ui_delay(1000L, TRUE);
+ ui_delay(1006L, TRUE);
emsg_on_display = FALSE;
if (check_msg_scroll)
msg_scroll = FALSE;
* available.
*/
if (vim_strchr(p_cpo, CPO_SHOWMATCH) != NULL)
- ui_delay(p_mat * 100L, TRUE);
+ ui_delay(p_mat * 100L + 8, TRUE);
else if (!char_avail())
- ui_delay(p_mat * 100L, FALSE);
+ ui_delay(p_mat * 100L + 9, FALSE);
curwin->w_cursor = save_cursor; /* restore cursor position */
*so = save_so;
*siso = save_siso;
if (ic && !msg_scrolled && msg_silent == 0)
{
out_flush();
- ui_delay(1000L, TRUE);
+ ui_delay(1007L, TRUE);
}
}
if (!msg_scrolled && msg_silent == 0)
{
out_flush();
- ui_delay(1000L, TRUE);
+ ui_delay(1010L, TRUE);
}
}
retval = OK;
screen_start(); /* don't know where cursor is now */
out_flush();
if (!is_not_a_term())
- ui_delay(2000L, TRUE);
+ ui_delay(2007L, TRUE);
}
}
*y = winpos_y;
return OK;
}
- ui_delay(10, FALSE);
+ ui_delay(10L, FALSE);
}
/* Do not reset "did_request_winpos", if we timed out the response might
* still come later and we must consume it. */
void
ui_delay(long msec, int ignoreinput)
{
+#ifdef FEAT_JOB_CHANNEL
+ ch_log(NULL, "ui_delay(%ld)", msec);
+#endif
#ifdef FEAT_GUI
if (gui.in_use && !ignoreinput)
gui_wait_for_chars(msec, typebuf.tb_change_cnt);
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2313,
/**/
2312,
/**/