This patch addresses ticket 2788.
Currently if you quit ('Q') from inside the pager, with quit=ask-yes
or quit=ask-no, and you respond "no", mutt leaves you back in the index
menu.
This patch changes it so that mutt does not exit the pager.
ch = -1;
break;
+ case OP_QUIT:
+ if (query_quadoption (OPT_QUIT, _("Quit Mutt?")) == M_YES)
+ {
+ /* avoid prompting again in the index menu */
+ set_quadoption (OPT_QUIT, M_YES);
+ ch = -1;
+ }
+ break;
+
case OP_NEXT_PAGE:
if (lineInfo[curline].offset < sb.st_size-1)
{