]> granicus.if.org Git - mutt/commitdiff
do not leave pager when changing sort order.
authorandreas amann <andreas.amann@tyndall.ie>
Fri, 6 Aug 2010 00:03:23 +0000 (17:03 -0700)
committerandreas amann <andreas.amann@tyndall.ie>
Fri, 6 Aug 2010 00:03:23 +0000 (17:03 -0700)
closes #2143

curs_main.c
functions.h

index 9ae65913bf893db1021949f311225157695e59a6..54f68d3e06073405a40bb75dcefd333bb0c7589c 100644 (file)
@@ -922,6 +922,11 @@ int mutt_index_menu (void)
            resort_index (menu);
            set_option (OPTSEARCHINVALID);
          }
+         if (menu->menu == MENU_PAGER)
+         {
+           op = OP_DISPLAY_MESSAGE;
+           continue;
+         }
          menu->redraw |= REDRAW_STATUS;
        }
        break;
index f90e6046e0cd53e640871a17e8b93bad93a93196..e8beacb4c80b74f812c763d4ebf27e481431b0f8 100644 (file)
@@ -208,6 +208,8 @@ struct binding_t OpPager[] = { /* map: pager */
   { "search-next",     OP_SEARCH_NEXT,                 "n" },
   { "next-thread",     OP_MAIN_NEXT_THREAD,            "\016" },
   { "next-subthread",  OP_MAIN_NEXT_SUBTHREAD,         "\033n" },
+  { "sort-mailbox",    OP_SORT,                        "o" },
+  { "sort-reverse",    OP_SORT_REVERSE,                "O" },
   { "print-message",   OP_PRINT,                       "p" },
   { "previous-thread", OP_MAIN_PREV_THREAD,            "\020" },
   { "previous-subthread",OP_MAIN_PREV_SUBTHREAD,       "\033p" },