Skip to content

Commit 1572e30

Browse files
committed
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)
1 parent a683ec4 commit 1572e30

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/os_unix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ mch_inchar(
511511
|| interrupted
512512
#endif
513513
|| wait_time > 0
514-
|| !did_start_blocking)
514+
|| (wtime < 0 && !did_start_blocking))
515515
continue;
516516

517517
/* no character available or interrupted */

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
512,
767769
/**/
768770
511,
769771
/**/

0 commit comments

Comments
 (0)