]> code.delx.au - offlineimap/commitdiff
Fix for keys with -1
authorJohn Goerzen <jgoerzen@complete.org>
Wed, 16 Jul 2008 19:12:38 +0000 (14:12 -0500)
committerJohn Goerzen <jgoerzen@complete.org>
Wed, 16 Jul 2008 19:12:38 +0000 (14:12 -0500)
fixes #83

offlineimap/ui/Curses.py

index 4cf9066724aeb0bb579f91eb46fca945019f09b2..6c24ab317e4ee67ffa9fb14a7a4c225d9ffdd925 100644 (file)
@@ -375,7 +375,7 @@ class Blinkenlights(BlinkenBase, UIBase):
             sys.exit(0)
 
     def keypress(s, key):
-        if key > 255:
+        if key < 1 or key > 255:
             return
         
         if chr(key) == 'q':