Browse Source

Set attrs in a go

master
Arun Prakash Jana 4 years ago
parent
commit
2b11601f89
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      src/nnn.c

+ 1
- 4
src/nnn.c View File

@@ -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;


Loading…
Cancel
Save