wmove + wclrtobot is werase.
[apps/madmutt.git] / pager.c
diff --git a/pager.c b/pager.c
index 78887cc..24fe18a 100644 (file)
--- a/pager.c
+++ b/pager.c
@@ -1275,9 +1275,7 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t * extra)
 
     if (redraw & REDRAW_FULL) {
       SETCOLOR(main_w, MT_COLOR_NORMAL);
-      /* wclear(main_w) doesn't optimize screen redraws */
-      wmove(main_w, 0, 0);
-      wclrtobot(main_w);
+      werase(main_w);
 
       if (IsHeader (extra) && Context->vcount + 1 < PagerIndexLines)
         indexlen = Context->vcount + 1;