lib/inch/cli.rb in inch-0.5.9 vs lib/inch/cli.rb in inch-0.5.10

- old
+ new

@@ -13,10 +13,15 @@ str = `stty size 2>&1` if str =~ /Invalid argument/ default else rows_cols = str.split(' ').map(&:to_i) - rows_cols[1] || default + cols = rows_cols[1] + if cols == 0 + default + else + cols || default + end end rescue default end end