]> granicus.if.org Git - neomutt/commitdiff
Attached is a minor fix to mutt_getch in curs_lib.c - as of 0.93.2i,
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 16 Sep 1998 20:08:25 +0000 (20:08 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 16 Sep 1998 20:08:25 +0000 (20:08 +0000)
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>)

curs_lib.c

index e9a0c69b69a479b07980ed62c23c8f158295a963..14c9afcf2338a1e5c2d8e47e65e6b503438ce3d6 100644 (file)
@@ -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 */