mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-25 13:27:33 +00:00
0f414cf0b9
The number of necessary columns was computed by producing a grid in different sizes and see if all columns were used. However, if there was two files and we tried to fit them in a 3-column grid, it would produces three headers and all three columns would be used; when trying a 4-column grid, the two supplementary headers would fill the third column and the fourth would be empty; so 3 columns would be used. Now, when the grid fits into the terminal and the number of columns is exactly the number of files to display, it returns immediately instead of trying bigger grids. Fixes GH-436.
524 B
524 B
Permissions Size User Date Modified Name Permissions Size User Date Modified Name
.rw-r--r-- 10 cassowary 1 Jan 12:34 /testcases/files/10_bytes .rw-r--r-- 10k cassowary 1 Jan 12:34 /testcases/files/10_KiB
.rw-r--r-- 10 cassowary 1 Jan 12:34 /testcases/files/10_bytes .rw-r--r-- 10k cassowary 1 Jan 12:34 /testcases/files/10_KiB