]> granicus.if.org Git - neomutt/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)
committerRichard Russon <rich@flatcap.org>
Fri, 30 Dec 2016 20:05:36 +0000 (20:05 +0000)
curs_main.c

index b6f713e32393a0d9d931e435a6816e921b676945..72dd885f2853cc9d86c701d818e20af721ae6fb0 100644 (file)
@@ -1375,7 +1375,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)
        {