]> granicus.if.org Git - neomutt/commitdiff
get <entire-thread> work from pager context
authorKirill A. Shutemov <kirill@shutemov.name>
Sat, 12 Oct 2013 18:34:57 +0000 (11:34 -0700)
committerRichard Russon <rich@flatcap.org>
Mon, 4 Apr 2016 15:30:07 +0000 (16:30 +0100)
I found annoying that we cant unfold whole thread from pager.
Implementation is pretty straight-forward.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
curs_main.c
functions.h

index 4888a2e55ee3132aac9fb10105172716f8be1b74..e9bd6199f210128059e860416269c5b1afba04cc 100644 (file)
@@ -1410,6 +1410,11 @@ int mutt_index_menu (void)
                        mutt_set_virtual(Context);
                }
        }
+       if (menu->menu == MENU_PAGER)
+       {
+         op = OP_DISPLAY_MESSAGE;
+         continue;
+       }
        break;
       }
 
index 5e4f36bdc85b6cd8c2b432354c1716116b2ff880..dbc1736fda16ae25e3c594173e3981967fd2eb6f 100644 (file)
@@ -309,6 +309,7 @@ const struct binding_t OpPager[] = { /* map: pager */
   { "vfolder-from-query",      OP_MAIN_VFOLDER_FROM_QUERY,     "\033X" },
   { "modify-labels",           OP_MAIN_MODIFY_LABELS,          "`" },
   { "modify-labels-then-hide", OP_MAIN_MODIFY_LABELS_THEN_HIDE, NULL },
+  { "entire-thread",           OP_MAIN_ENTIRE_THREAD,          "+" },
 #endif
 
   { NULL,              0,                              NULL }