mscan: fix %M

This commit is contained in:
Christian Neukirchen 2016-08-04 20:16:59 +02:00
parent 57f1dd3896
commit 019a6680f5

View File

@ -244,6 +244,8 @@ oneline(char *file)
struct message *msg = blaze822(file);
char *flags = msg ? strstr(file, ":2,") : "";
if (*flags)
flags += 3;
int wleft = cols;
@ -318,7 +320,7 @@ oneline(char *file)
break;
case 'M': // raw Maildir flags
if (!w) w = -3;
wleft -= printf("%.*s", w, flags);
wleft -= printf("%*s", w, flags);
break;
case 'n':
{