]> granicus.if.org Git - neomutt/commitdiff
Fix batch mode lockup. (closes #3761) (closes #3760)
authorKevin McCarthy <kevin@8t8.us>
Sat, 11 Jul 2015 21:36:51 +0000 (14:36 -0700)
committerKevin McCarthy <kevin@8t8.us>
Sat, 11 Jul 2015 21:36:51 +0000 (14:36 -0700)
The new TS capability check was also running when curses wasn't
initialized.  Move check inside the !OPTNOCURSES block.

main.c

diff --git a/main.c b/main.c
index 0d709f43e71943f5c62e1bda755be410be1443fd..17e8bf4cacad22a140f529f94d533b18a1209ca6 100644 (file)
--- 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);