summaryrefslogtreecommitdiff
path: root/src/gui_photon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_photon.c')
-rw-r--r--src/gui_photon.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui_photon.c b/src/gui_photon.c
index 234d25066..94012287e 100644
--- a/src/gui_photon.c
+++ b/src/gui_photon.c
@@ -1344,8 +1344,9 @@ gui_mch_wait_for_chars(int wtime)
{
is_timeout = FALSE;
- if (wtime > 0)
- PtSetResource(gui_ph_timer_timeout, Pt_ARG_TIMER_INITIAL, wtime, 0);
+ if (wtime >= 0)
+ PtSetResource(gui_ph_timer_timeout, Pt_ARG_TIMER_INITIAL,
+ wtime == 0 ? 1 : wtime, 0);
while (1)
{