From 45079876b5030f1bb28b1bf456951e8fe940e7b3 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Wed, 16 Sep 1998 20:08:25 +0000 Subject: [PATCH] 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 ) --- curs_lib.c | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- 2.40.0