#include <pwd.h>
#include <grp.h>
-#include <lib-ui/curses.h>
+#include <lib-ui/lib-ui.h>
#include <lib-ui/enter.h>
#include <lib-ui/menu.h>
#include <lib-ui/sidebar.h>
#ifdef USE_NNTP
if (option (OPTNEWS))
- m_strformat(s, slen, COLS - SW, GroupFormat, newsgroup_format_str,
+ m_strformat(s, slen, getmaxx(main_w), GroupFormat, newsgroup_format_str,
&folder, 0);
else
#endif
- m_strformat(s, slen, COLS - SW, FolderFormat, folder_format_str,
+ m_strformat(s, slen, getmaxx(main_w), FolderFormat, folder_format_str,
&folder, 0);
}