]> granicus.if.org Git - mutt/commitdiff
Enable the use of toggle-write from the pager.
authorJeremy Sowden <jeremy@azazel.net>
Tue, 23 Apr 2019 21:15:31 +0000 (22:15 +0100)
committerKevin McCarthy <kevin@8t8.us>
Tue, 23 Apr 2019 21:35:49 +0000 (14:35 -0700)
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
curs_main.c
functions.h

index 609c1b57988e3f2600be959ef4cf51de415b58c5..32925f29d7d8d4b6ac019248a7728acbda6fc808 100644 (file)
@@ -1880,7 +1880,15 @@ int mutt_index_menu (void)
 
        CHECK_IN_MAILBOX;
        if (mx_toggle_write (Context) == 0)
-         menu->redraw |= REDRAW_STATUS;
+        {
+         if (menu->menu == MENU_PAGER)
+          {
+            op = OP_DISPLAY_MESSAGE;
+            continue;
+          }
+          else
+            menu->redraw |= REDRAW_STATUS;
+        }
        break;
 
       case OP_MAIN_NEXT_THREAD:
index 081f14877044025a384ca14555d8abda9d806c98..5b9459b5600eb0d41d59fb914638e3e8f097419c 100644 (file)
@@ -226,6 +226,7 @@ const struct binding_t OpPager[] = { /* map: pager */
   { "redraw-screen",   OP_REDRAW,                      "\014" },
   { "mail",            OP_MAIL,                        "m" },
   { "mark-as-new",     OP_TOGGLE_NEW,                  "N" },
+  { "toggle-write",    OP_TOGGLE_WRITE,                "%" },
   { "search-next",     OP_SEARCH_NEXT,                 "n" },
   { "next-thread",     OP_MAIN_NEXT_THREAD,            "\016" },
   { "next-subthread",  OP_MAIN_NEXT_SUBTHREAD,         "\033n" },