1
0
forked from aniani/vim

patch 8.1.0872: confusing condition

Problem:    Confusing condition.
Solution:   Use "==" instead of "<=".
This commit is contained in:
Bram Moolenaar
2019-02-03 15:28:28 +01:00
parent 314dd79cac
commit 34a587457f
2 changed files with 3 additions and 1 deletions

View 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;