From 26e05cfb4d4440518a579bdc6485ddfb8250c2e9 Mon Sep 17 00:00:00 2001 From: Athitya Date: Fri, 30 Jun 2017 15:28:13 +0530 Subject: [PATCH] Fixes rubocop issue --- colorls.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colorls.rb b/colorls.rb index c1ff227..119fc53 100644 --- a/colorls.rb +++ b/colorls.rb @@ -30,7 +30,7 @@ class ColorLS @screen_width = TermInfo.screen_size.last @max_width = @contents.map(&:length).max chunk_size = @screen_width / @max_width - chunk_size = chunk_size - 1 while (chunk_size*(@max_width+16) > @screen_width) + chunk_size -= 1 while chunk_size * (@max_width + 16) > @screen_width @contents = @contents.each_slice(chunk_size).to_a end