X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-ui%2Fhdrline.c;h=c0cef6d3f2f87eb170716182307bf88c47b84d1a;hb=142d30ec0fa23abf29a327968f7cfeb1cd27bb3f;hp=30b43df498cb6ba4d5a0b96dd913bfd067264e5e;hpb=2ac2bb6e436cef59dcbb88031b276aa81a109785;p=apps%2Fmadmutt.git diff --git a/lib-ui/hdrline.c b/lib-ui/hdrline.c index 30b43df..c0cef6d 100644 --- a/lib-ui/hdrline.c +++ b/lib-ui/hdrline.c @@ -7,10 +7,9 @@ * please see the file GPL in the top level source directory. */ -#include +#include #include -#include #include #include "mutt.h" @@ -756,5 +755,5 @@ _mutt_make_string (char *dest, ssize_t destlen, const char *s, CONTEXT * ctx, hfi.hdr = hdr; hfi.ctx = ctx; - m_strformat(dest, destlen, COLS - SW, s, hdr_format_str, &hfi, flags); + m_strformat(dest, destlen, getmaxx(main_w), s, hdr_format_str, &hfi, flags); }