mirror of
https://github.com/jarun/nnn.git
synced 2025-03-18 20:39:45 +00:00
Use boxes to show number of selected files.
This commit is contained in:
parent
3004694cd4
commit
0ef9ec196e
1 changed files with 4 additions and 4 deletions
|
@ -3952,8 +3952,8 @@ static void redraw(char *path)
|
||||||
xstrlcpy(buf, coolsize(dir_blocks << blk_shift), 12);
|
xstrlcpy(buf, coolsize(dir_blocks << blk_shift), 12);
|
||||||
c = cfg.apparentsz ? 'a' : 'd';
|
c = cfg.apparentsz ? 'a' : 'd';
|
||||||
|
|
||||||
mvprintw(lastln, 0, "%d/%d (%d) %cu:%s free:%s files:%lu %lldB %s",
|
mvprintw(lastln, 0, "%d/%d [%s] %cu:%s free:%s files:%lu %lldB %s",
|
||||||
cur + 1, ndents, nselected, c, buf,
|
cur + 1, ndents, (nselected ? xitoa(nselected) : ""), c, buf,
|
||||||
coolsize(get_fs_info(path, FREE)), num_files,
|
coolsize(get_fs_info(path, FREE)), num_files,
|
||||||
(ll)pent->blocks << blk_shift, ptr);
|
(ll)pent->blocks << blk_shift, ptr);
|
||||||
} else { /* light or detail mode */
|
} else { /* light or detail mode */
|
||||||
|
@ -3965,8 +3965,8 @@ static void redraw(char *path)
|
||||||
strftime(buf, sizeof(buf), "%Y-%b-%d %R", localtime(&pent->t));
|
strftime(buf, sizeof(buf), "%Y-%b-%d %R", localtime(&pent->t));
|
||||||
buf[sizeof(buf)-1] = '\0';
|
buf[sizeof(buf)-1] = '\0';
|
||||||
|
|
||||||
mvprintw(lastln, 0, "%d/%d (%d) %s%s %s %s %s [%s]",
|
mvprintw(lastln, 0, "%d/%d [%s] %s%s %s %s %s [%s]",
|
||||||
cur + 1, ndents, nselected, sort, buf,
|
cur + 1, ndents, (nselected ? xitoa(nselected) : ""), sort, buf,
|
||||||
get_lsperms(pent->mode), coolsize(pent->size), ptr, base);
|
get_lsperms(pent->mode), coolsize(pent->size), ptr, base);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Add table
Reference in a new issue