Return numbers from screen_size, kthxbai...
This commit is contained in:
parent
bd9804cb0e
commit
6a9dd8ee70
|
@ -21,6 +21,6 @@ class Pry::TerminalInfo
|
||||||
ENV['ANSICON'] =~ /\((.*)x(.*)\)/ && [$2, $1]
|
ENV['ANSICON'] =~ /\((.*)x(.*)\)/ && [$2, $1]
|
||||||
].detect do |(_, cols)|
|
].detect do |(_, cols)|
|
||||||
cols.to_i > 0
|
cols.to_i > 0
|
||||||
end
|
end.map!(&:to_i)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue