1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Return numbers from screen_size, kthxbai...

This commit is contained in:
Conrad Irwin 2012-11-29 10:08:50 -08:00
parent bd9804cb0e
commit 6a9dd8ee70

View file

@ -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