From: Brendan Cully Date: Wed, 21 Sep 2005 02:58:07 +0000 (+0000) Subject: Cancelling from within the pager will now keep you in the X-Git-Tag: mutt-1-5-12-rel~357 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44b8b2a0dce69ea52d95bce1cc295b97a000a67d;p=mutt Cancelling from within the pager will now keep you in the pager rather than kicking you back to the index. Closes: #2075. --- diff --git a/curs_main.c b/curs_main.c index 62e7f40b..23507626 100644 --- a/curs_main.c +++ b/curs_main.c @@ -1072,7 +1072,15 @@ CHECK_IMAP_ACL(IMAP_ACL_DELETE); mutt_buffy (buf, sizeof (buf)); if (mutt_enter_fname (cp, buf, sizeof (buf), &menu->redraw, 1) == -1) - break; + { + if (menu->menu == MENU_PAGER) + { + op = OP_DISPLAY_MESSAGE; + continue; + } + else + break; + } if (!buf[0]) { CLEARLINE (LINES-1);