Always resort, redraw, ... whatever when we change settings.
[apps/madmutt.git] / browser.c
index 2f75821..f001c3d 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -13,7 +13,7 @@
 #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>
@@ -612,11 +612,11 @@ static void folder_entry (char *s, ssize_t slen, MUTTMENU * menu, int num)
 
 #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);
 }