mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.0-212
This commit is contained in:
21
src/ui.c
21
src/ui.c
@@ -166,10 +166,17 @@ ui_inchar(buf, maxlen, wtime, tb_change_cnt)
|
||||
}
|
||||
#endif
|
||||
|
||||
/* When doing a blocking wait there is no need for CTRL-C to interrupt
|
||||
* something, don't let it set got_int when it was mapped. */
|
||||
if (mapped_ctrl_c && (wtime == -1 || wtime > 100L))
|
||||
/* If we are going to wait for some time or block... */
|
||||
if (wtime == -1 || wtime > 100L)
|
||||
{
|
||||
/* ... allow signals to kill us. */
|
||||
(void)vim_handle_signal(SIGNAL_UNBLOCK);
|
||||
|
||||
/* ... there is no need for CTRL-C to interrupt something, don't let
|
||||
* it set got_int when it was mapped. */
|
||||
if (mapped_ctrl_c)
|
||||
ctrl_c_interrupts = FALSE;
|
||||
}
|
||||
|
||||
#ifdef FEAT_GUI
|
||||
if (gui.in_use)
|
||||
@@ -183,15 +190,13 @@ ui_inchar(buf, maxlen, wtime, tb_change_cnt)
|
||||
else
|
||||
# endif
|
||||
{
|
||||
if (wtime == -1 || wtime > 100L)
|
||||
/* allow signals to kill us */
|
||||
(void)vim_handle_signal(SIGNAL_UNBLOCK);
|
||||
retval = mch_inchar(buf, maxlen, wtime, tb_change_cnt);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (wtime == -1 || wtime > 100L)
|
||||
/* block SIGHUP et al. */
|
||||
(void)vim_handle_signal(SIGNAL_BLOCK);
|
||||
}
|
||||
#endif
|
||||
|
||||
ctrl_c_interrupts = TRUE;
|
||||
|
||||
|
@@ -666,6 +666,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
212,
|
||||
/**/
|
||||
211,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user