X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-ui%2Fstatus.c;h=a6f0211af0887da54d714dc3995d7bfe8e891da7;hb=6c248aa3490f9c948da1bcfe49bdf8d7ba25e372;hp=fb61664bd857e7cda2631604c973d5877ce9ddaf;hpb=9946738a6a1c27a5602a14d1afe2eea2389732b2;p=apps%2Fmadmutt.git diff --git a/lib-ui/status.c b/lib-ui/status.c index fb61664..a6f0211 100644 --- a/lib-ui/status.c +++ b/lib-ui/status.c @@ -7,9 +7,8 @@ * please see the file GPL in the top level source directory. */ -#include +#include -#include #include #include @@ -17,8 +16,6 @@ #include "sort.h" #include "buffy.h" -#define SW (option(OPTMBOXPANE)?SidebarWidth:0) - static char *get_sort_str (char *buf, ssize_t buflen, int method) { snprintf (buf, buflen, "%s%s%s", @@ -286,5 +283,5 @@ status_format_str(char *buf, ssize_t buflen, char op, const char *src, void menu_status_line(char* buf, ssize_t len, MUTTMENU* menu, const char* p) { - m_strformat(buf, len, COLS - SW, p, status_format_str, menu, 0); + m_strformat(buf, len, getmaxx(main_w), p, status_format_str, menu, 0); }