]> granicus.if.org Git - mutt/commitdiff
Cancelling <change-folder> from within the pager will now keep you in the
authorBrendan Cully <brendan@kublai.com>
Wed, 21 Sep 2005 02:58:07 +0000 (02:58 +0000)
committerBrendan Cully <brendan@kublai.com>
Wed, 21 Sep 2005 02:58:07 +0000 (02:58 +0000)
pager rather than kicking you back to the index. Closes: #2075.

curs_main.c

index 62e7f40baa83c95fcdf543dbba44ab373208158d..23507626d39b6166c9eb59f8b6fc3fb3a2a3046c 100644 (file)
@@ -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);