1
0
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:
Bram Moolenaar 2017-03-25 20:16:28 +01:00
parent a683ec44c3
commit 1572e30607
2 changed files with 3 additions and 1 deletions

View File

@ -511,7 +511,7 @@ mch_inchar(
|| interrupted
#endif
|| wait_time > 0
|| !did_start_blocking)
|| (wtime < 0 && !did_start_blocking))
continue;
/* no character available or interrupted */

View File

@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
512,
/**/
511,
/**/