* please see the file GPL in the top level source directory.
*/
-#include <lib-lib/lib-lib.h>
+#include <lib-ui/lib-ui.h>
#include <lib-mime/mime.h>
-#include <lib-ui/curses.h>
#include <lib-mx/mx.h>
#include "mutt.h"
hfi.hdr = hdr;
hfi.ctx = ctx;
- m_strformat(dest, destlen, COLS - SW, s, hdr_format_str, &hfi, flags);
+ m_strformat(dest, destlen, getmaxx(main_w), s, hdr_format_str, &hfi, flags);
}