From ae24854526b2678131876da1e5480d7688b3282c Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Sat, 11 Jul 2015 14:36:51 -0700 Subject: [PATCH] Fix batch mode lockup. (closes #3761) (closes #3760) The new TS capability check was also running when curses wasn't initialized. Move check inside the !OPTNOCURSES block. --- main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 0d709f43..17e8bf4c 100644 --- a/main.c +++ b/main.c @@ -766,10 +766,12 @@ int main (int argc, char **argv) /* This must come before mutt_init() because curses needs to be started before calling the init_pair() function to set the color scheme. */ if (!option (OPTNOCURSES)) + { start_curses (); - /* check whether terminal status is supported (must follow curses init) */ - TSSupported = mutt_ts_capability(); + /* check whether terminal status is supported (must follow curses init) */ + TSSupported = mutt_ts_capability(); + } /* set defaults and read init files */ mutt_init (flags & M_NOSYSRC, commands); -- 2.40.0