mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-06-03 07:50:49 +00:00
Fix bug where unfilled displays were being checked
This commit is contained in:
parent
26e3abc6b1
commit
6d6e8b78f0
|
@ -25,7 +25,12 @@ impl GridDetails {
|
|||
for column_count in 2.. {
|
||||
let grid = self.make_grid(column_count, &*columns_for_dir, files, cells.clone());
|
||||
|
||||
if grid.fit_into_columns(column_count).width() <= self.grid.console_width {
|
||||
let the_grid_fits = {
|
||||
let d = grid.fit_into_columns(column_count);
|
||||
d.is_complete() && d.width() <= self.grid.console_width
|
||||
};
|
||||
|
||||
if the_grid_fits {
|
||||
last_working_table = grid;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user