mirror of
https://github.com/leahneukirchen/mblaze
synced 2024-11-03 15:40:32 +00:00
mscan: fix %M
This commit is contained in:
parent
57f1dd3896
commit
019a6680f5
4
mscan.c
4
mscan.c
@ -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':
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user