Explorar el Código

Set attrs in a go

master
Arun Prakash Jana hace 5 años
padre
commit
2b11601f89
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: A75979F35C080412
Se han modificado 1 ficheros con 1 adiciones y 4 borrados
  1. +1
    -4
      src/nnn.c

+ 1
- 4
src/nnn.c Ver fichero

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


Cargando…
Cancelar
Guardar