aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-02-02 00:48:43 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-02-03 09:58:59 +0530
commita161635ecc69da4a24a09b94d37a7c9d6e065b6e (patch)
treeb24b3609b2a4b9487eb2dc36de35d6e27e0782df
parent729e775998b873fe16056c372e885d31d7fcbe93 (diff)
downloadnnn-a161635ecc69da4a24a09b94d37a7c9d6e065b6e.tar.gz
Remove file indicator from file name
-rw-r--r--src/nnn.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 3093d64..e2779bb 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2736,9 +2736,8 @@ static void redraw(char *path)
/* We need to show filename as it may be truncated in directory listing */
if (!cfg.blkorder)
- mvprintw(LINES - 1, 0, "%d/%d %s[%s%s]\n", cur + 1, ndents, sort,
- unescape(dents[cur].name, NAME_MAX),
- get_file_sym(dents[cur].mode));
+ mvprintw(LINES - 1, 0, "%d/%d %s[%s]\n", cur + 1, ndents, sort,
+ unescape(dents[cur].name, NAME_MAX));
else {
xstrlcpy(buf, coolsize(dir_blocks << BLK_SHIFT), 12);
if (cfg.apparentsz)
@@ -2747,11 +2746,10 @@ static void redraw(char *path)
c = 'd';
mvprintw(LINES - 1, 0,
- "%d/%d %cu: %s (%lu files) vol: %s free [%s%s]\n",
+ "%d/%d %cu: %s (%lu files) vol: %s free [%s]\n",
cur + 1, ndents, c, buf, num_files,
coolsize(get_fs_info(path, FREE)),
- unescape(dents[cur].name, NAME_MAX),
- get_file_sym(dents[cur].mode));
+ unescape(dents[cur].name, NAME_MAX));
}
} else
printmsg("0/0");