aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-01-17 20:26:09 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-01-17 20:26:09 +0530
commit339fcd83f03a4ffd4a598c9ec472463432b6334c (patch)
treeb359f0b4c3841001e32572f7678d9e18f964d3a6 /src
parented934c0e97428c3dcc7fe5068cf686269533f3fc (diff)
downloadnnn-339fcd83f03a4ffd4a598c9ec472463432b6334c.tar.gz
Code reformat
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/nnn.c b/src/nnn.c
index aaa4775..dec8eac 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1692,8 +1692,6 @@ static char *get_file_sym(mode_t mode)
ind[0] = '|';
else if (mode & 0100)
ind[0] = '*';
- else
- ind[0] = '\0';
return ind;
}
@@ -1742,15 +1740,11 @@ static void printent_long(struct entry *ent, int sel, uint namecols)
else if (S_ISCHR(ent->mode))
printw("%s%-16.16s c %s\n", CURSYM(sel), buf, pname);
else if (ent->mode & 0100) {
- if (cfg.blkorder)
- printw("%s%-16.16s %8.8s* %s*\n", CURSYM(sel), buf, coolsize(ent->blocks << BLK_SHIFT), pname);
- else
- printw("%s%-16.16s %8.8s* %s*\n", CURSYM(sel), buf, coolsize(ent->size), pname);
+ printw("%s%-16.16s %8.8s* %s*\n", CURSYM(sel), buf,
+ coolsize(cfg.blkorder ? ent->blocks << BLK_SHIFT : ent->size), pname);
} else {
- if (cfg.blkorder)
- printw("%s%-16.16s %8.8s %s\n", CURSYM(sel), buf, coolsize(ent->blocks << BLK_SHIFT), pname);
- else
- printw("%s%-16.16s %8.8s %s\n", CURSYM(sel), buf, coolsize(ent->size), pname);
+ printw("%s%-16.16s %8.8s %s\n", CURSYM(sel), buf,
+ coolsize(cfg.blkorder ? ent->blocks << BLK_SHIFT : ent->size), pname);
}
if (sel)