diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-03 15:28:28 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-03 15:28:28 +0100 |
commit | 34a587457f09743974dcee24a04a1752a949b300 (patch) | |
tree | 54a151533388e46e3fb6680f8c2bcf22cff1d5ba /src/gui_gtk_x11.c | |
parent | 314dd79cac2adc10304212d1980d23ecf6782cfc (diff) | |
download | vim-git-34a587457f09743974dcee24a04a1752a949b300.tar.gz |
patch 8.1.0872: confusing conditionv8.1.0872
Problem: Confusing condition.
Solution: Use "==" instead of "<=".
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r-- | src/gui_gtk_x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |