#include <utime.h>
-#include <lib-ui/curses.h>
+#include <lib-ui/lib-ui.h>
#include "state.h"
#include "rfc3676.h"
width = MaxLineLength;
}
else {
- if (option (OPTMBOXPANE))
- width = COLS - SidebarWidth - WrapMargin - ql - 1;
- else
- width = COLS - WrapMargin - ql - 1;
+ width = getmaxx(main_w) - WrapMargin - ql - 1;
if (!(s->flags & M_REPLYING) && option (OPTSTUFFQUOTED))
--width;
if (width < 0)
- width = COLS;
+ width = getmaxx(main_w);
}
if (m_strlen(line) == 0) {