From: Arun Prakash Jana Date: Sun, 1 Mar 2020 06:49:17 +0000 (+0530) Subject: Set attrs in a go X-Git-Tag: v3.1~114 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=2b11601f8905d9dfd1f9ae575497596e24832615;p=nnn.git Set attrs in a go --- diff --git a/src/nnn.c b/src/nnn.c index ea6b5542..0d9ad8a2 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;