From aa8769eceecb88097719bb28ee2a47af13b72267 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 9 Aug 2020 14:04:27 +0530 Subject: [PATCH] Reduce a check --- src/nnn.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index 975fe725..0e0e54a3 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;