Remove file indicator from file name

This commit is contained in:
Arun Prakash Jana 2019-02-02 00:48:43 +05:30
parent 729e775998
commit a161635ecc
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -2736,9 +2736,8 @@ static void redraw(char *path)
/* We need to show filename as it may be truncated in directory listing */ /* We need to show filename as it may be truncated in directory listing */
if (!cfg.blkorder) if (!cfg.blkorder)
mvprintw(LINES - 1, 0, "%d/%d %s[%s%s]\n", cur + 1, ndents, sort, mvprintw(LINES - 1, 0, "%d/%d %s[%s]\n", cur + 1, ndents, sort,
unescape(dents[cur].name, NAME_MAX), unescape(dents[cur].name, NAME_MAX));
get_file_sym(dents[cur].mode));
else { else {
xstrlcpy(buf, coolsize(dir_blocks << BLK_SHIFT), 12); xstrlcpy(buf, coolsize(dir_blocks << BLK_SHIFT), 12);
if (cfg.apparentsz) if (cfg.apparentsz)
@ -2747,11 +2746,10 @@ static void redraw(char *path)
c = 'd'; c = 'd';
mvprintw(LINES - 1, 0, 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, cur + 1, ndents, c, buf, num_files,
coolsize(get_fs_info(path, FREE)), coolsize(get_fs_info(path, FREE)),
unescape(dents[cur].name, NAME_MAX), unescape(dents[cur].name, NAME_MAX));
get_file_sym(dents[cur].mode));
} }
} else } else
printmsg("0/0"); printmsg("0/0");