From 14d947467e8b4cec3ce42717ba8dc464a11e6273 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Tue, 6 Jun 2006 17:29:10 +0000 Subject: [PATCH] Fix: don't quit on timeout if time is stepped to past. Thanks to Viktor Nozhnov 2:5020/1668 --- golded3/geutil.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/golded3/geutil.cpp b/golded3/geutil.cpp index bbeb066..3fa293b 100644 --- a/golded3/geutil.cpp +++ b/golded3/geutil.cpp @@ -76,7 +76,7 @@ void update_statuslines() { __gver_release__, __gver_postversion__ ); - + int help_len = strlen(help); int clk_len = strlen(clkinfo); int len = MAXCOL-help_len-clk_len-2; @@ -631,7 +631,7 @@ static void call_func_geutil(VfvCP func) { vcurshow(); } - + // ------------------------------------------------------------------ void call_help() { @@ -656,7 +656,7 @@ void call_help() { void CheckTick(gkey quitkey) { - Clock idle_secs = (gkbd.tickvalue - gkbd.tickpress) / 10L; + Clock idle_secs = abs(gkbd.tickvalue - gkbd.tickpress) / 10L; if(CFG->timeout) { if(((signed long)idle_secs > 0) and (idle_secs >= CFG->timeout)) {