From b7e469eac680e5e1fe998198dbd2dbad8782eb34 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Mon, 4 Mar 2019 08:08:28 +0000 Subject: ls: use correct column width for WIN32 inodes --- coreutils/ls.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/coreutils/ls.c b/coreutils/ls.c index a1782ed45..c5402de30 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -657,7 +657,11 @@ static void display_files(struct dnode **dn, unsigned nfiles) } column_width += 2 + ((option_mask32 & OPT_Z) ? 33 : 0) /* context width */ +#if !ENABLE_FEATURE_EXTRA_FILE_DATA + ((option_mask32 & OPT_i) ? 8 : 0) /* inode# width */ +#else + + ((option_mask32 & OPT_i) ? 20 : 0) /* inode# width */ +#endif + ((option_mask32 & OPT_s) ? 5 : 0) /* "alloc block" width */ ; ncols = (unsigned)G_terminal_width / column_width; -- cgit v1.2.3-55-g6feb