# HG changeset patch # User mikael # Date 1114958991 0 # Node ID 439b750d99fa5389f2473595c2030ebcf72bee3a # Parent 8a54d46e889a7ae71aba92c54fee18929346a78e [/trunk] Changeset 168 by mikael * Reset refresh when a key is pressed. diff -r 8a54d46e889a -r 439b750d99fa mcabber/src/main.c --- a/mcabber/src/main.c Sun May 01 05:33:04 2005 +0000 +++ b/mcabber/src/main.c Sun May 01 14:49:51 2005 +0000 @@ -201,9 +201,10 @@ // The refresh is really an ugly hack, but we need to call doupdate() // from time to time to catch the RESIZE events, because getch keep // returning ERR until a real key is pressed :-( - if (key != ERR) + if (key != ERR) { ret = process_key(key); - else if (refresh++ > 1) { + refresh = 0; + } else if (refresh++ > 1) { doupdate(); refresh = 0; }