changeset 15730:e5441bee8063

patch 8.1.0872: confusing condition commit https://github.com/vim/vim/commit/34a587457f09743974dcee24a04a1752a949b300 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 3 15:28:28 2019 +0100 patch 8.1.0872: confusing condition Problem: Confusing condition. Solution: Use "==" instead of "<=".
author Bram Moolenaar <Bram@vim.org>
date Sun, 03 Feb 2019 23:45:05 +0100
parents fe57e4f0eac1
children eef64072071f
files src/gui_gtk_x11.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- a/src/version.c
+++ b/src/version.c
@@ -784,6 +784,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    872,
+/**/
     871,
 /**/
     870,