aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 975fe72..0e0e54a 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3446,11 +3446,10 @@ static void printent(const struct entry *ent, uint namecols, bool sel)
ind = '*';
}
- if (ent->flags & HARD_LINK)
- pair = C_HRD;
-
if (!ent->size)
pair = C_UND;
+ else if (ent->flags & HARD_LINK)
+ pair = C_HRD;
else if (!pair)
pair = C_FIL;
break;