mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Fix #685: indicator H fo hidden
This commit is contained in:
parent
e2febc986b
commit
a58c65a51a
28
src/nnn.c
28
src/nnn.c
|
@ -2455,25 +2455,21 @@ static int getorderstr(char *sort)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
|
if (cfg.showhidden)
|
||||||
|
sort[i++] = 'H';
|
||||||
|
|
||||||
if (cfg.timeorder)
|
if (cfg.timeorder)
|
||||||
sort[0] = (cfg.timetype == T_MOD) ? 'M' : ((cfg.timetype == T_ACCESS) ? 'A' : 'C');
|
sort[i++] = (cfg.timetype == T_MOD) ? 'M' : ((cfg.timetype == T_ACCESS) ? 'A' : 'C');
|
||||||
else if (cfg.sizeorder)
|
else if (cfg.sizeorder)
|
||||||
sort[0] = 'S';
|
sort[i++] = 'S';
|
||||||
else if (cfg.extnorder)
|
else if (cfg.extnorder)
|
||||||
sort[0] = 'E';
|
sort[i++] = 'E';
|
||||||
|
|
||||||
if (sort[i])
|
if (entrycmpfn == &reventrycmp)
|
||||||
++i;
|
sort[i++] = 'R';
|
||||||
|
|
||||||
if (entrycmpfn == &reventrycmp) {
|
if (namecmpfn == &xstrverscasecmp)
|
||||||
sort[i] = 'R';
|
sort[i++] = 'V';
|
||||||
++i;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (namecmpfn == &xstrverscasecmp) {
|
|
||||||
sort[i] = 'V';
|
|
||||||
++i;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (i)
|
if (i)
|
||||||
sort[i] = ' ';
|
sort[i] = ' ';
|
||||||
|
@ -2484,7 +2480,7 @@ static int getorderstr(char *sort)
|
||||||
static void showfilterinfo(void)
|
static void showfilterinfo(void)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
char info[REGEX_MAX] = "\0\0\0\0";
|
char info[REGEX_MAX] = "\0\0\0\0\0";
|
||||||
|
|
||||||
i = getorderstr(info);
|
i = getorderstr(info);
|
||||||
|
|
||||||
|
@ -5172,7 +5168,7 @@ static void statusbar(char *path)
|
||||||
(cfg.apparentsz ? 'a' : 'd'), buf, coolsize(get_fs_info(path, FREE)),
|
(cfg.apparentsz ? 'a' : 'd'), buf, coolsize(get_fs_info(path, FREE)),
|
||||||
num_files, (ll)pent->blocks << blk_shift, ptr);
|
num_files, (ll)pent->blocks << blk_shift, ptr);
|
||||||
} else { /* light or detail mode */
|
} else { /* light or detail mode */
|
||||||
char sort[] = "\0\0\0\0";
|
char sort[] = "\0\0\0\0\0";
|
||||||
|
|
||||||
getorderstr(sort);
|
getorderstr(sort);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue