From 5f50b3afca3565373f6c424ea9c6dfcdd5b17f5c Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Fri, 3 May 2002 12:45:47 +0000 Subject: [PATCH] Fixed timeout behaviour --- docs/notework.txt | 4 ++++ golded3/geutil.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/notework.txt b/docs/notework.txt index 6c1ceee..d7d946a 100644 --- a/docs/notework.txt +++ b/docs/notework.txt @@ -12,6 +12,10 @@ ______________________________________________________________________ Notes for GoldED+ 1.1.5, /snapshot/ ______________________________________________________________________ +- GoldED+ should no longer exit when system time is changed to the + past and Timeout is non-zero. But... Timeout still calculated from + timestamp of previous keypress. + ! Some actions will not reload message if it is not required. + Added possibility to specify AKA in AREASEP: diff --git a/golded3/geutil.cpp b/golded3/geutil.cpp index c6a9910..2fcbb3f 100644 --- a/golded3/geutil.cpp +++ b/golded3/geutil.cpp @@ -527,7 +527,7 @@ void CheckTick(gkey quitkey) { Clock idle_secs = (gkbd.tickvalue - gkbd.tickpress) / 10L; if(CFG->timeout) { - if(idle_secs >= CFG->timeout) { + if(((signed long)idle_secs > 0) and (idle_secs >= CFG->timeout)) { kbput(quitkey); return; }