LINES - 1 is the status bar, living on stdscr.
[apps/madmutt.git] / flags.c
diff --git a/flags.c b/flags.c
index aca2dcf..137c789 100644 (file)
--- a/flags.c
+++ b/flags.c
@@ -331,17 +331,17 @@ int mutt_change_flag(HEADER * h, int bf)
 
     int c;
 
-    mvwprintw(main_w, LINES - 1, 0, "%s? (D/N/O/r/*/!): ",
+    mvwprintw(stdscr, LINES - 1, 0, "%s? (D/N/O/r/*/!): ",
              bf ? _("Set flag") : _("Clear flag"));
-    wclrtoeol(main_w);
+    wclrtoeol(stdscr);
 
     c = mutt_getch().ch;
     if (c == -1) {
-        CLEARLINE(main_w, LINES - 1);
+        CLEARLINE(stdscr, LINES - 1);
         return (-1);
     }
 
-    CLEARLINE(main_w, LINES - 1);
+    CLEARLINE(stdscr, LINES - 1);
 
     if (c < 0 || c > countof(actions) || !actions[c]) {
         BEEP();