From: Gary Johnson Date: Wed, 2 Apr 2003 08:40:50 +0000 (+0000) Subject: Here is the patch to fix the bug I reported earlier in this thread, X-Git-Tag: pre-type-punning-patch~118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=570b5854520e8029c4091db7b9c967c3c035c0e8;p=mutt Here is the patch to fix the bug I reported earlier in this thread, that sometimes when changing folders, mutt would generate an error message and stop the further processing of folder-hooks. --- diff --git a/curs_main.c b/curs_main.c index ed4a4140..43d30d20 100644 --- a/curs_main.c +++ b/curs_main.c @@ -1048,6 +1048,12 @@ CHECK_IMAP_ACL(IMAP_ACL_DELETE); mutt_sleep (0); + /* Set CurrentMenu to MENU_MAIN before executing any folder + * hooks so that all the index menu functions are available to + * the exec command. + */ + + CurrentMenu = MENU_MAIN; mutt_folder_hook (buf); if ((Context = mx_open_mailbox (buf,