mirror of
https://github.com/athityakumar/colorls.git
synced 2024-09-19 05:31:23 +02:00
Adds minor correction in tab indentation
This commit is contained in:
parent
b340d0035c
commit
ed2a250e88
1 changed files with 3 additions and 2 deletions
|
@ -29,7 +29,8 @@ class ColorLS
|
|||
def chunkify
|
||||
@screen_width = TermInfo.screen_size.last
|
||||
@max_width = @contents.map(&:length).max
|
||||
chunk_size = @screen_width / (@max_width + 4)
|
||||
chunk_size = @screen_width / @max_width
|
||||
chunk_size = chunk_size - 1 while (chunk_size*(@max_width+16) > @screen_width)
|
||||
@contents = @contents.each_slice(chunk_size).to_a
|
||||
end
|
||||
|
||||
|
@ -64,7 +65,7 @@ class ColorLS
|
|||
chunk.each do |content|
|
||||
print fetch_string(content, *options(content))
|
||||
print ' ' * (@max_width - content.length)
|
||||
print "\t"
|
||||
print "\t\t"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue