aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nnn.c b/src/nnn.c
index ea6b554..0d9ad8a 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3196,10 +3196,7 @@ static void print_time(const time_t *timep)
static void printent(const struct entry *ent, uint namecols, bool sel)
{
char ind = get_ind(ent->mode, FALSE);
- int attrs = sel ? A_REVERSE : 0;
-
- if (ind == '@' || (ent->flags & HARD_LINK))
- attrs |= A_DIM;
+ int attrs = ((ind == '@' || (ent->flags & HARD_LINK)) ? A_DIM : 0) | (sel ? A_REVERSE : 0);
if (!ind)
++namecols;