From: Pierre Habouzit Date: Sat, 11 Nov 2006 13:13:34 +0000 (+0100) Subject: fix regression X-Git-Url: http://git.madism.org/?a=commitdiff_plain;ds=sidebyside;h=95d605c6b6281c9faae8bf6db465fe7920fa12fb;hp=7f1449a1f3dc70202c19005d74c6afe7cb0f18c0;p=apps%2Fmadtty.git fix regression Signed-off-by: Pierre Habouzit --- diff --git a/madtty/madtty.c b/madtty/madtty.c index 6556890..13f6026 100644 --- a/madtty/madtty.c +++ b/madtty/madtty.c @@ -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]) {