]> granicus.if.org Git - mutt/commitdiff
Return to pager upon aborting a jump operation. (closes #3901)
authorKevin McCarthy <kevin@8t8.us>
Wed, 30 Nov 2016 01:48:33 +0000 (17:48 -0800)
committerKevin McCarthy <kevin@8t8.us>
Wed, 30 Nov 2016 01:48:33 +0000 (17:48 -0800)
curs_main.c

index a097705785020b097a7615c6416074f54eabf80d..7e45ba68e307a1a25b34af06fd0ae4ed91cf30aa 100644 (file)
@@ -831,7 +831,14 @@ int mutt_index_menu (void)
        buf[0] = 0;
        if (mutt_get_field (_("Jump to message: "), buf, sizeof (buf), 0) != 0
            || !buf[0])
+        {
+          if (menu->menu == MENU_PAGER)
+          {
+            op = OP_DISPLAY_MESSAGE;
+            continue;
+          }
          break;
+        }
 
        if (mutt_atoi (buf, &i) < 0)
        {