From: Thomas Roessler Date: Wed, 16 Sep 1998 20:08:25 +0000 (+0000) Subject: Attached is a minor fix to mutt_getch in curs_lib.c - as of 0.93.2i, X-Git-Tag: mutt-0-94-7i-rel~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45079876b5030f1bb28b1bf456951e8fe940e7b3;p=mutt Attached is a minor fix to mutt_getch in curs_lib.c - as of 0.93.2i, if +'metakey' and 'timeout' were both set, mutt_getch was returning an ESC rather than -1, which resulted in 'key not bound' messages every 'timeout' seconds. (From: Tim Walberg ) --- diff --git a/curs_lib.c b/curs_lib.c index e9a0c69b..14c9afcf 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -65,6 +65,9 @@ int mutt_getch (void) if (Signals & S_INTERRUPT) mutt_query_exit (); + if(ch == -1) + return ch; + if ((ch & 0x80) && option (OPTMETAKEY)) { /* send ALT-x as ESC-x */