From: Bram Moolenaar Date: Sun, 3 Feb 2019 14:28:28 +0000 (+0100) Subject: patch 8.1.0872: confusing condition X-Git-Tag: v8.1.0872 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34a587457f09743974dcee24a04a1752a949b300;p=vim patch 8.1.0872: confusing condition Problem: Confusing condition. Solution: Use "==" instead of "<=". --- diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index e1de83a68..b76aacd9c 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -6320,7 +6320,7 @@ gui_mch_wait_for_chars(long wtime) // This timeout makes sure that we will return if no characters arrived in // time. If "wtime" is zero just use one. if (wtime >= 0) - timer = timeout_add(wtime <= 0 ? 1L : wtime, + timer = timeout_add(wtime == 0 ? 1L : wtime, input_timer_cb, &timed_out); else timer = 0; diff --git a/src/version.c b/src/version.c index 3d24067e4..71fd1c1ee 100644 --- a/src/version.c +++ b/src/version.c @@ -783,6 +783,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 872, /**/ 871, /**/