]> granicus.if.org Git - mutt/commitdiff
Timeout occasionally in menus, with the notable exception of the
authorThomas Roessler <roessler@does-not-exist.org>
Sat, 25 Mar 2000 18:22:09 +0000 (18:22 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Sat, 25 Mar 2000 18:22:09 +0000 (18:22 +0000)
editor.  This is needed to avoid some more IMAP timeouts.
[patch-1.1.9.tlr.timeout.1]

keymap.c

index c15a4195e5eba6b228b1e8804b4370efa988dcb8..dae5fea2a951c29998f77d0a8fd054e4734ad3d7 100644 (file)
--- a/keymap.c
+++ b/keymap.c
@@ -351,13 +351,13 @@ int km_dokey (int menu)
 
   FOREVER
   {
-/* ncurses doesn't return on resized screen when timeout is set to zero */
-    if (menu == MENU_MAIN || menu == MENU_PAGER)
+    /* ncurses doesn't return on resized screen when timeout is set to zero */
+    if (menu != MENU_EDITOR)
       timeout ((Timeout > 0 ? Timeout : 60) * 1000);
 
     tmp = mutt_getch();
 
-    if (menu == MENU_MAIN || menu == MENU_PAGER)
+    if (menu != MENU_EDITOR)
       timeout (-1); /* restore blocking operation */
 
     LastKey = tmp.ch;