Commit 381c402b authored by Thomas Roessler's avatar Thomas Roessler

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]
parent 681942b8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment