From: Richard Russon Date: Wed, 28 Mar 2018 03:31:02 +0000 (+0100) Subject: slang: don't endwin() if slang wasn't started X-Git-Tag: neomutt-20180512~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e179d32293a8858e595bd1f8218f7aa109f16c9;p=neomutt slang: don't endwin() if slang wasn't started --- diff --git a/main.c b/main.c index 7f6d3b29d..ff8a14508 100644 --- a/main.c +++ b/main.c @@ -424,6 +424,7 @@ int main(int argc, char **argv, char **env) break; default: usage(); + OPT_NO_CURSES = true; goto main_ok; // TEST03: neomutt -9 } } @@ -442,6 +443,7 @@ int main(int argc, char **argv, char **env) print_version(); else print_copyright(); + OPT_NO_CURSES = true; goto main_ok; // TEST04: neomutt -v }