changeset: 6464:2ca89bed6448
user: Kevin McCarthy <[email protected]>
date: Sat Jul 11 14:36:51 2015 -0700
link: http://dev.mutt.org/hg/mutt/rev/2ca89bed6448
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.
diffs (18 lines):
diff -r 7e91a8855dc3 -r 2ca89bed6448 main.c
--- a/main.c Thu Jul 09 14:50:05 2015 -0700
+++ b/main.c Sat Jul 11 14:36:51 2015 -0700
@@ -766,10 +766,12 @@
/* 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);