From: Kevin McCarthy Date: Sat, 11 Jul 2015 21:36:51 +0000 (-0700) Subject: Fix batch mode lockup. (closes #3761) (closes #3760) X-Git-Tag: neomutt-20160307~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e956adfb872be7f00abab7761136a6c3a79c5c7;p=neomutt 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. --- diff --git a/main.c b/main.c index 0d709f43e..17e8bf4ca 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);