mirror of
https://github.com/uutils/uutils-term-grid.git
synced 2026-06-10 16:13:01 -07:00
make loop for smallest_dimension_yet inclusive
This commit is contained in:
+1
-1
@@ -380,7 +380,7 @@ impl Grid {
|
||||
// Instead of numbers of columns, try to find the fewest number of *lines*
|
||||
// that the output will fit in.
|
||||
let mut smallest_dimensions_yet = None;
|
||||
for num_lines in (1 .. theoretical_max_num_lines).rev() {
|
||||
for num_lines in (1..=theoretical_max_num_lines).rev() {
|
||||
|
||||
// The number of columns is the number of cells divided by the number
|
||||
// of lines, *rounded up*.
|
||||
|
||||
Reference in New Issue
Block a user