diff options
author | 2020-03-01 12:19:17 +0530 | |
---|---|---|
committer | 2020-03-01 12:19:17 +0530 | |
commit | 2b11601f8905d9dfd1f9ae575497596e24832615 (patch) | |
tree | a720f57c7514c91aaee1597bd213b16052270aa6 /src | |
parent | 5228528fac39a06e8b46bb02e9f1bd7a2110dc53 (diff) | |
download | nnn-2b11601f8905d9dfd1f9ae575497596e24832615.tar.gz |
Set attrs in a go
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; |