From 5acd76ee270428302ec5e623a0cf743c17c4c05b Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Sun, 2 Jul 2017 12:06:17 +0100 Subject: [PATCH] don't close the pager after a timeout Setting a timeout hook could cause the pager to automatically close itself when viewing help or an attachment. timeout-hook 'exec sync mailbox' The timeout was causing a fake keypress event which cause the pager to quit. Fixes #591 --- pager.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pager.c b/pager.c index 756f4e79f..4192ccb10 100644 --- a/pager.c +++ b/pager.c @@ -3143,6 +3143,9 @@ int mutt_pager(const char *banner, const char *fname, int flags, struct Pager *e mutt_reflow_windows(); break; #endif + case OP_MAIN_SYNC_FOLDER: + /* This key-press is side-effect. Ignore it. */ + break; default: ch = -1; -- 2.40.0