LINES - 1 is the status bar, living on stdscr.
[apps/madmutt.git] / lib-ui / layout.c
index d8e09a4..5dfdb62 100644 (file)
@@ -59,7 +59,7 @@ void mutt_refresh(void)
 void mutt_endwin(const char *msg)
 {
     if (!option(OPTNOCURSES)) {
-        CLEARLINE(main_w, LINES - 1);
+        CLEARLINE(stdscr, LINES - 1);
 
         if (sidebar_w) {
             delwin(sidebar_w);