aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-02 19:58:10 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-02 19:58:10 +0530
commitf5c6f4f90b1b60e48f0a7c265f39b1b378596dd8 (patch)
tree0865ac4e26960aa89717499c126f7c25be3dd7d1 /src
parent45a69f1cbf99deb614e21ff3b0a1b48169e1bffc (diff)
downloadnnn-f5c6f4f90b1b60e48f0a7c265f39b1b378596dd8.tar.gz
Dim file details in detail mode
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 79f4f07..8467ea1 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)