commit | ea351b97428f7dc921d5431ccac366201754fcef | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Sun Mar 06 17:53:11 2016 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Sun Mar 06 17:53:11 2016 +0100 |
tree | ae1155eace4dc3f56fdad2ce146c549a76adb07f | |
parent | 7849ccb61c376e4704ce1c3e5a0d12fd7d743200 [diff] |
ls: fix columnar output. Closes 8731 In coreutils/ls.c, 1.19 introduced commit 2f7d9e8903029b1b5e51a15f9cb0dcb6ca17c3ac, removing the variable tabstops and hard coding the column separation to 2 characters, but was not done correctly. The column_width assumes a gap of 1 character, so the computed number of columns exceeds the terminal width when many small files are encountered. A minor problem but surprisingly annoying. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>