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;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]) {