From: Arun Prakash Jana Date: Sat, 2 May 2020 14:28:10 +0000 (+0530) Subject: Dim file details in detail mode X-Git-Tag: v3.2~82 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f5c6f4f90b1b60e48f0a7c265f39b1b378596dd8;p=nnn.git Dim file details in detail mode --- diff --git a/src/nnn.c b/src/nnn.c index 79f4f075..8467ea10 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -3254,7 +3254,7 @@ static void printent_long(const struct entry *ent, uint namecols, bool sel) { bool ln = FALSE; char ind1 = '\0', ind2 = '\0'; - int attrs = sel ? A_REVERSE : 0; + int attrs = sel ? A_REVERSE | A_DIM : A_DIM; uint len; char *size; @@ -3322,9 +3322,9 @@ static void printent_long(const struct entry *ent, uint namecols, bool sel) } addstr(" "); - if (ln) { - attron(A_DIM); - attrs |= A_DIM; + if (!ln) { + attroff(A_DIM); + attrs ^= A_DIM; } addwstr(unescape(ent->name, namecols)); if (attrs)