From: Richard Russon Date: Sun, 25 Nov 2018 22:28:55 +0000 (+0000) Subject: check for Context X-Git-Tag: 2019-10-25~489 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e0591711b6b20cdd17052f75cc3f10df80d3100;p=neomutt check for Context --- diff --git a/index.c b/index.c index ee5463555..ba2a65ea2 100644 --- a/index.c +++ b/index.c @@ -2083,6 +2083,7 @@ int mutt_index_menu(void) break; case OP_MAIN_WINDOWED_VFOLDER_BACKWARD: + CHECK_IN_MAILBOX; mutt_debug(2, "OP_MAIN_WINDOWED_VFOLDER_BACKWARD\n"); if (NmQueryWindowDuration <= 0) { @@ -2103,6 +2104,7 @@ int mutt_index_menu(void) break; case OP_MAIN_WINDOWED_VFOLDER_FORWARD: + CHECK_IN_MAILBOX; if (NmQueryWindowDuration <= 0) { mutt_message(_("Windowed queries disabled")); @@ -3013,7 +3015,8 @@ int mutt_index_menu(void) case OP_ENTER_COMMAND: mutt_enter_command(); - mutt_check_rescore(Context->mailbox); + if (Context) + mutt_check_rescore(Context->mailbox); break; case OP_EDIT_OR_VIEW_RAW_MESSAGE: