-void menu_status_line (char* buf, ssize_t len, MUTTMENU* menu, const char* p) {
- /*
- * if we have enough space for buffer, format lines to $COLS-$SidebarWidth
- * only to not wrap past end of screen
- */
- int width = MIN(COLS - SW + 1, len);
- m_strformat(buf, width, p, status_format_str, menu, 0);
+void menu_status_line(char* buf, ssize_t len, MUTTMENU* menu, const char* p)
+{
+ m_strformat(buf, len, getmaxx(main_w), p, status_format_str, menu, 0);