mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Code reformat
This commit is contained in:
parent
ed934c0e97
commit
339fcd83f0
1 changed files with 4 additions and 10 deletions
14
src/nnn.c
14
src/nnn.c
|
@ -1692,8 +1692,6 @@ static char *get_file_sym(mode_t mode)
|
||||||
ind[0] = '|';
|
ind[0] = '|';
|
||||||
else if (mode & 0100)
|
else if (mode & 0100)
|
||||||
ind[0] = '*';
|
ind[0] = '*';
|
||||||
else
|
|
||||||
ind[0] = '\0';
|
|
||||||
|
|
||||||
return ind;
|
return ind;
|
||||||
}
|
}
|
||||||
|
@ -1742,15 +1740,11 @@ static void printent_long(struct entry *ent, int sel, uint namecols)
|
||||||
else if (S_ISCHR(ent->mode))
|
else if (S_ISCHR(ent->mode))
|
||||||
printw("%s%-16.16s c %s\n", CURSYM(sel), buf, pname);
|
printw("%s%-16.16s c %s\n", CURSYM(sel), buf, pname);
|
||||||
else if (ent->mode & 0100) {
|
else if (ent->mode & 0100) {
|
||||||
if (cfg.blkorder)
|
printw("%s%-16.16s %8.8s* %s*\n", CURSYM(sel), buf,
|
||||||
printw("%s%-16.16s %8.8s* %s*\n", CURSYM(sel), buf, coolsize(ent->blocks << BLK_SHIFT), pname);
|
coolsize(cfg.blkorder ? ent->blocks << BLK_SHIFT : ent->size), pname);
|
||||||
else
|
|
||||||
printw("%s%-16.16s %8.8s* %s*\n", CURSYM(sel), buf, coolsize(ent->size), pname);
|
|
||||||
} else {
|
} else {
|
||||||
if (cfg.blkorder)
|
printw("%s%-16.16s %8.8s %s\n", CURSYM(sel), buf,
|
||||||
printw("%s%-16.16s %8.8s %s\n", CURSYM(sel), buf, coolsize(ent->blocks << BLK_SHIFT), pname);
|
coolsize(cfg.blkorder ? ent->blocks << BLK_SHIFT : ent->size), pname);
|
||||||
else
|
|
||||||
printw("%s%-16.16s %8.8s %s\n", CURSYM(sel), buf, coolsize(ent->size), pname);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sel)
|
if (sel)
|
||||||
|
|
Loading…
Add table
Reference in a new issue