]> granicus.if.org Git - mutt/commitdiff
Some display-related fixes from Andrej Gritsenko.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 26 Oct 1999 15:14:01 +0000 (15:14 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 26 Oct 1999 15:14:01 +0000 (15:14 +0000)
curs_lib.c
main.c

index 182f30bca9c19c1df476054d3c99ec413a6a18e4..948e2fe584268383f7f250e7dedef6eada3650ec 100644 (file)
@@ -247,7 +247,7 @@ void mutt_endwin (const char *msg)
 {
   if (!option (OPTNOCURSES))
   {
-#ifdef SLANG_CURSES
+#ifdef USE_SLANG_CURSES
     CLEARLINE (LINES - 1);
     move (LINES - 1, 0)
 #else
@@ -258,7 +258,7 @@ void mutt_endwin (const char *msg)
     attrset (A_NORMAL);
     mutt_refresh ();
     endwin ();
-#ifndef SLANG_CURSES
+#ifndef USE_SLANG_CURSES
     fputc ('\n', stdout);
 #endif
   }
diff --git a/main.c b/main.c
index 1a86c58b3847b5bb50a1e6b61e89760b0b6df493..713d95e0b39677a8ba3f1ed301a0245cab0746e1 100644 (file)
--- a/main.c
+++ b/main.c
@@ -717,10 +717,8 @@ int main (int argc, char **argv)
       mutt_index_menu ();
       if (Context)
        safe_free ((void **)&Context);
-      mutt_endwin (NULL);
     }
-    else
-      mutt_endwin (Errorbuf);
+    mutt_endwin (Errorbuf);
   }
 
   exit (0);