Dim file details in detail mode

This commit is contained in:
Arun Prakash Jana 2020-05-02 19:58:10 +05:30
parent 45a69f1cbf
commit f5c6f4f90b
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -3254,7 +3254,7 @@ static void printent_long(const struct entry *ent, uint namecols, bool sel)
{ {
bool ln = FALSE; bool ln = FALSE;
char ind1 = '\0', ind2 = '\0'; char ind1 = '\0', ind2 = '\0';
int attrs = sel ? A_REVERSE : 0; int attrs = sel ? A_REVERSE | A_DIM : A_DIM;
uint len; uint len;
char *size; char *size;
@ -3322,9 +3322,9 @@ static void printent_long(const struct entry *ent, uint namecols, bool sel)
} }
addstr(" "); addstr(" ");
if (ln) { if (!ln) {
attron(A_DIM); attroff(A_DIM);
attrs |= A_DIM; attrs ^= A_DIM;
} }
addwstr(unescape(ent->name, namecols)); addwstr(unescape(ent->name, namecols));
if (attrs) if (attrs)