Fix the case COLUMNS is unset
This commit is contained in:
parent
632115c11e
commit
ab353a3064
@ -98,7 +98,7 @@ class DottedFormatter
|
|||||||
@columns = nil
|
@columns = nil
|
||||||
else
|
else
|
||||||
columns = ENV["COLUMNS"]&.to_i
|
columns = ENV["COLUMNS"]&.to_i
|
||||||
columns = 80 unless columns.nonzero?
|
columns = 80 unless columns&.nonzero?
|
||||||
w = COUNT_WIDTH + 1
|
w = COUNT_WIDTH + 1
|
||||||
round = 20
|
round = 20
|
||||||
@columns = (columns - w) / round * round + w
|
@columns = (columns - w) / round * round + w
|
||||||
|
Loading…
x
Reference in New Issue
Block a user