LINES - 1 is the status bar, living on stdscr.
[apps/madmutt.git] / flags.c
diff --git a/flags.c b/flags.c
index afadb4c..137c789 100644 (file)
--- a/flags.c
+++ b/flags.c
@@ -9,7 +9,7 @@
 
 #include <lib-lib/lib-lib.h>
 
-#include <lib-ui/curses.h>
+#include <lib-ui/lib-ui.h>
 #include <lib-ui/menu.h>
 #include <lib-ui/sidebar.h>
 #include <lib-mx/mx.h>
@@ -337,11 +337,11 @@ int mutt_change_flag(HEADER * h, int bf)
 
     c = mutt_getch().ch;
     if (c == -1) {
-        CLEARLINE (LINES - 1);
+        CLEARLINE(stdscr, LINES - 1);
         return (-1);
     }
 
-    CLEARLINE (LINES - 1);
+    CLEARLINE(stdscr, LINES - 1);
 
     if (c < 0 || c > countof(actions) || !actions[c]) {
         BEEP();