summaryrefslogtreecommitdiffstats
path: root/curs_lib.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-09-16 20:08:25 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-09-16 20:08:25 +0000
commit45079876b5030f1bb28b1bf456951e8fe940e7b3 (patch)
treeed9e0b011b906a118589d092f8d70f1627594115 /curs_lib.c
parent3de984c5dd8b6df309f8d6f6a0dae72223ffaa48 (diff)
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 <walberg@cig.mot.com>)
Diffstat (limited to 'curs_lib.c')
-rw-r--r--curs_lib.c3
1 files changed, 3 insertions, 0 deletions
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 */