X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fruby-progressbar%2Fprogressbar.rb;h=cb5605637b260d9ae190988171b050d7ecc7dca8;hb=8e886df259246365023322b78f58e4037cb536a4;hp=507082d6aa6be82dc03df26edcf2396ebe316cc6;hpb=34e42ad8644d4f25b2dc3734abf7407055e9992c;p=dead%2Fwhatever-dl.git diff --git a/vendor/ruby-progressbar/progressbar.rb b/vendor/ruby-progressbar/progressbar.rb index 507082d..cb56056 100644 --- a/vendor/ruby-progressbar/progressbar.rb +++ b/vendor/ruby-progressbar/progressbar.rb @@ -126,7 +126,8 @@ class ProgressBar tiocgwinsz = 0x5413 data = [0, 0, 0, 0].pack("SSSS") if @out.ioctl(tiocgwinsz, data) >= 0 then - rows, cols, xpixels, ypixels = data.unpack("SSSS") + # rows,cols,xpixels,ypixels + cols = data.unpack("SSSS")[1] if cols >= 0 then cols else default_width end else default_width