diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-09-16 20:08:25 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-09-16 20:08:25 +0000 |
commit | 45079876b5030f1bb28b1bf456951e8fe940e7b3 (patch) | |
tree | ed9e0b011b906a118589d092f8d70f1627594115 /curs_lib.c | |
parent | 3de984c5dd8b6df309f8d6f6a0dae72223ffaa48 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 */ |