Display the prompt in the pager, so a multiline prompt or resize
doesn't refresh the index menu. Then, bounce back through the index
to handle resorting and status line updates.
This also fixes cancelling to stay in the pager.
#include "mutt_curses.h"
#include "mutt_menu.h"
#include "mutt_regex.h"
+#include "sort.h"
#ifdef USE_SIDEBAR
#include "sidebar.h"
#endif
}
break;
+ case OP_SORT:
+ case OP_SORT_REVERSE:
+ CHECK_MODE(IsHeader(extra))
+ if (mutt_select_sort((ch == OP_SORT_REVERSE)) == 0)
+ {
+ set_option(OPTNEEDRESORT);
+ ch = -1;
+ rc = OP_DISPLAY_MESSAGE;
+ }
+ break;
+
case OP_HELP:
/* don't let the user enter the help-menu from the help screen! */
if (!InHelp)