We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc3c5c5 commit c93ae4bCopy full SHA for c93ae4b
lib/irb/cmd/ls.rb
@@ -64,7 +64,7 @@ def fits_on_line?(strs, cols:, offset: 0)
64
65
def col_widths(strs, cols:)
66
cols.times.map do |col|
67
- (col...strs.size).step(cols.size - 1).map do |i|
+ (col...strs.size).step(cols).map do |i|
68
strs[i].length
69
end.max
70
end
0 commit comments