- if (COLS - SW > col) {
- m_strformat(buf, sizeof(buf), fmt, callback, data, flags);
- pos += m_strpad(dst + pos, dlen - pos, ch,
- COLS - SW - col - mutt_strwidth(buf));
+ if (width > 0) {
+ m_strformat(buf, sizeof(buf), 0, fmt, callback, cdata, flags);
+ width -= mutt_strwidth(buf);
+ pos += m_strpad(dst + pos, dlen - pos, ch, width);