mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Add space between file size and unit suffix
As per http://dev.yorhel.nl/ncdu/bug/31
This commit is contained in:
parent
0e9e6d511a
commit
532c32c884
2 changed files with 6 additions and 6 deletions
|
|
@ -142,8 +142,8 @@ static void browse_draw_item(struct dir *n, int row) {
|
|||
|
||||
x = 0;
|
||||
|
||||
mvprintw(row, x, "%c %8s ", ct, size);
|
||||
x += 11;
|
||||
mvprintw(row, x, "%c %9s ", ct, size);
|
||||
x += 12;
|
||||
|
||||
if (show_items) {
|
||||
if (n->items > 99999)
|
||||
|
|
@ -169,7 +169,7 @@ static void browse_draw_item(struct dir *n, int row) {
|
|||
|
||||
void browse_draw() {
|
||||
struct dir *t;
|
||||
char fmtsize[9], *tmp;
|
||||
char fmtsize[10], *tmp;
|
||||
int selected = 0, i;
|
||||
|
||||
erase();
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ char *cropstr(const char *from, int s) {
|
|||
|
||||
|
||||
char *formatsize(int64_t from) {
|
||||
static char dat[9]; /* "xxx.xMiB" */
|
||||
static char dat[10]; /* "xxx.x MiB" */
|
||||
float r = from;
|
||||
char c = ' ';
|
||||
if (si) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue