Ver código fonte

Set attrs in a go

master
Arun Prakash Jana 5 anos atrás
pai
commit
2b11601f89
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: A75979F35C080412
1 arquivos alterados com 1 adições e 4 exclusões
  1. +1
    -4
      src/nnn.c

+ 1
- 4
src/nnn.c Ver arquivo

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


Carregando…
Cancelar
Salvar