From 7a6525f5ccba6584d7dd58f09d3e938f90192f50 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Tue, 29 Nov 2016 17:48:33 -0800 Subject: [PATCH] Return to pager upon aborting a jump operation. (closes #3901) --- curs_main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/curs_main.c b/curs_main.c index b6f713e32..72dd885f2 100644 --- a/curs_main.c +++ b/curs_main.c @@ -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) { -- 2.40.0