summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/ls.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 07e083f..e9c2e86 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -443,12 +443,7 @@ static void showfiles(struct dnode **dn, int nfiles)
if (column_width < len)
column_width= len;
}
- if (column_width >= 6)
- ncols = (int)(terminal_width / (column_width + COLUMN_GAP));
- else {
- ncols = 1;
- column_width = COLUMN_WIDTH;
- }
+ ncols = (int)(terminal_width / (column_width + COLUMN_GAP));
#else
ncols= TERMINAL_WIDTH;
#endif