* fileutils/ls.c (showfiles): Display multiple short names on a line.
This commit is contained in:
parent
372f91f07c
commit
3bd31ebc9a
@ -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;
|
||||
}
|
||||
#else
|
||||
ncols= TERMINAL_WIDTH;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user