From ed2a250e88af2c2d509acd02cc15152b31bb7a53 Mon Sep 17 00:00:00 2001 From: Athitya Date: Fri, 30 Jun 2017 15:14:27 +0530 Subject: [PATCH] Adds minor correction in tab indentation --- colorls.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/colorls.rb b/colorls.rb index 8a256d0..c1ff227 100644 --- a/colorls.rb +++ b/colorls.rb @@ -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