Commit ff6067d
committed
Make sure table width is integer
- In some environments, and depending on how the console window is resized,
maxWidth can be an odd number. This makes maxWidth / 2 a decimal and cli-table2
fails with `RangeError: Invalid array length`.
- Fixes #401 parent 8ddb85d commit ff6067d
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
0 commit comments