nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f5c6f4f90b1b60e48f0a7c265f39b1b378596dd8
parent 45a69f1cbf99deb614e21ff3b0a1b48169e1bffc
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sat,  2 May 2020 19:58:10 +0530

Dim file details in detail mode

Diffstat:
Msrc/nnn.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 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)