Nico Golde:
authornion <nion@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Sun, 28 Aug 2005 23:12:44 +0000 (23:12 +0000)
committernion <nion@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Sun, 28 Aug 2005 23:12:44 +0000 (23:12 +0000)
- endwin should not be used

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@461 e385b8ad-14ed-0310-8656-cc95a2468c6d

curs_lib.c
init.c

index afd34b6..13539e2 100644 (file)
@@ -276,7 +276,7 @@ void mutt_query_exit (void)
   if (Timeout)
     timeout (-1);               /* restore blocking operation */
   if (mutt_yesorno (_("Exit Mutt-ng?"), M_YES) == M_YES) {
   if (Timeout)
     timeout (-1);               /* restore blocking operation */
   if (mutt_yesorno (_("Exit Mutt-ng?"), M_YES) == M_YES) {
-    endwin ();
+    mutt_endwin (NULL);
     exit (1);
   }
   mutt_clear_error ();
     exit (1);
   }
   mutt_clear_error ();
diff --git a/init.c b/init.c
index 7d2f1e6..1fc39f2 100644 (file)
--- a/init.c
+++ b/init.c
@@ -2439,7 +2439,7 @@ void mutt_init (int skip_sys_rc, LIST * commands)
   /* Read the user's initialization file.  */
   if (access (Muttrc, F_OK) != -1) {
     if (!option (OPTNOCURSES))
   /* Read the user's initialization file.  */
   if (access (Muttrc, F_OK) != -1) {
     if (!option (OPTNOCURSES))
-      endwin ();
+      mutt_endwin (NULL);
     if (source_rc (Muttrc, &err) != 0) {
       fputs (err.data, stderr);
       fputc ('\n', stderr);
     if (source_rc (Muttrc, &err) != 0) {
       fputs (err.data, stderr);
       fputc ('\n', stderr);