mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
updated for version 7.0-090
This commit is contained in:
10
src/misc1.c
10
src/misc1.c
@@ -3016,6 +3016,7 @@ get_keystroke()
|
|||||||
int len = 0;
|
int len = 0;
|
||||||
int n;
|
int n;
|
||||||
int save_mapped_ctrl_c = mapped_ctrl_c;
|
int save_mapped_ctrl_c = mapped_ctrl_c;
|
||||||
|
int waited = 0;
|
||||||
|
|
||||||
mapped_ctrl_c = FALSE; /* mappings are not used here */
|
mapped_ctrl_c = FALSE; /* mappings are not used here */
|
||||||
for (;;)
|
for (;;)
|
||||||
@@ -3034,11 +3035,16 @@ get_keystroke()
|
|||||||
/* Replace zero and CSI by a special key code. */
|
/* Replace zero and CSI by a special key code. */
|
||||||
n = fix_input_buffer(buf + len, n, FALSE);
|
n = fix_input_buffer(buf + len, n, FALSE);
|
||||||
len += n;
|
len += n;
|
||||||
|
waited = 0;
|
||||||
}
|
}
|
||||||
|
else if (len > 0)
|
||||||
|
++waited; /* keep track of the waiting time */
|
||||||
|
|
||||||
/* incomplete termcode: get more characters */
|
/* Incomplete termcode and not timed out yet: get more characters */
|
||||||
if ((n = check_termcode(1, buf, len)) < 0)
|
if ((n = check_termcode(1, buf, len)) < 0
|
||||||
|
&& (!p_ttimeout || waited * 100L < (p_ttm < 0 ? p_tm : p_ttm)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* found a termcode: adjust length */
|
/* found a termcode: adjust length */
|
||||||
if (n > 0)
|
if (n > 0)
|
||||||
len = n;
|
len = n;
|
||||||
|
@@ -666,6 +666,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 */
|
||||||
|
/**/
|
||||||
|
90,
|
||||||
/**/
|
/**/
|
||||||
89,
|
89,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user