]> granicus.if.org Git - vim/commitdiff
patch 8.1.0872: confusing condition v8.1.0872
authorBram Moolenaar <Bram@vim.org>
Sun, 3 Feb 2019 14:28:28 +0000 (15:28 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 3 Feb 2019 14:28:28 +0000 (15:28 +0100)
Problem:    Confusing condition.
Solution:   Use "==" instead of "<=".

src/gui_gtk_x11.c
src/version.c

index e1de83a68b54ea762ab885fa7ae86f1a5dcd80e0..b76aacd9cc225b44e9ffa2995e5629a39883a366 100644 (file)
@@ -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;
index 3d24067e4052cd2643306b0c31e390d231cce0c1..71fd1c1eea9137124c63ae1dd04f8ef76866e4b0 100644 (file)
@@ -783,6 +783,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    872,
 /**/
     871,
 /**/