forked from aniani/vim
patch 8.0.0512: check for available characters takes too long
Problem: Check for available characters takes too long. Solution: Only check did_start_blocking if wtime is negative. (Daisuke Suzuki, closes #1591)
This commit is contained in:
parent
a683ec44c3
commit
1572e30607
@ -511,7 +511,7 @@ mch_inchar(
|
|||||||
|| interrupted
|
|| interrupted
|
||||||
#endif
|
#endif
|
||||||
|| wait_time > 0
|
|| wait_time > 0
|
||||||
|| !did_start_blocking)
|
|| (wtime < 0 && !did_start_blocking))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* no character available or interrupted */
|
/* no character available or interrupted */
|
||||||
|
@ -764,6 +764,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 */
|
||||||
|
/**/
|
||||||
|
512,
|
||||||
/**/
|
/**/
|
||||||
511,
|
511,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user