|
|
@ -242,7 +242,6 @@ oneline(char *file)
|
|
|
|
|
|
|
|
|
|
|
|
struct message *msg = blaze822(file);
|
|
|
|
struct message *msg = blaze822(file);
|
|
|
|
char *flags = msg ? strstr(file, ":2,") : "";
|
|
|
|
char *flags = msg ? strstr(file, ":2,") : "";
|
|
|
|
long lineno = msg ? blaze822_seq_find(file) : 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int wleft = cols;
|
|
|
|
int wleft = cols;
|
|
|
|
|
|
|
|
|
|
|
@ -320,11 +319,15 @@ oneline(char *file)
|
|
|
|
wleft -= printf("%.*s", w, flags);
|
|
|
|
wleft -= printf("%.*s", w, flags);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'n':
|
|
|
|
case 'n':
|
|
|
|
if (lineno)
|
|
|
|
{
|
|
|
|
printf("%*ld", w, lineno);
|
|
|
|
long lineno = msg ? blaze822_seq_find(file) : 0;
|
|
|
|
else
|
|
|
|
|
|
|
|
printf("%*s", w, "");
|
|
|
|
if (lineno)
|
|
|
|
wleft -= w > 0 ? w : -w;
|
|
|
|
printf("%*ld", w, lineno);
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
printf("%*s", w, "");
|
|
|
|
|
|
|
|
wleft -= w > 0 ? w : -w;
|
|
|
|
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'd':
|
|
|
|
case 'd':
|
|
|
|
case 'D':
|
|
|
|
case 'D':
|
|
|
|