From: Thomas Roessler Date: Sat, 25 Mar 2000 18:22:09 +0000 (+0000) Subject: Timeout occasionally in menus, with the notable exception of the X-Git-Tag: mutt-1-1-10-rel~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=381c402b011270ddcb2d67bc4bfb737adaadec18;p=mutt Timeout occasionally in menus, with the notable exception of the editor. This is needed to avoid some more IMAP timeouts. [patch-1.1.9.tlr.timeout.1] --- diff --git a/keymap.c b/keymap.c index c15a4195..dae5fea2 100644 --- 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;