fix regression
authorPierre Habouzit <madcoder@debian.org>
Sat, 11 Nov 2006 13:13:34 +0000 (14:13 +0100)
committerPierre Habouzit <madcoder@debian.org>
Sat, 11 Nov 2006 13:13:34 +0000 (14:13 +0100)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
madtty/madtty.c

index 6556890..13f6026 100644 (file)
@@ -364,7 +364,7 @@ void rote_vt_keypress(RoteTerm *rt, int keycode)
 {
     char c = (char) keycode;
 
-    if (keytable['\n'] != NULL)
+    if (keytable['\n'] == NULL)
         keytable_init();
 
     if (keycode >= 0 && keycode < KEY_MAX && keytable[keycode]) {