From b2d2d25b94fd9699408759f5b8b394f54f57ef89 Mon Sep 17 00:00:00 2001 From: aycabta Date: Mon, 8 Feb 2021 11:08:57 +0900 Subject: [ruby/irb] Suppress colorize on Windows tests https://github.com/ruby/irb/commit/5be9354cf9 --- lib/irb/workspace.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/irb') diff --git a/lib/irb/workspace.rb b/lib/irb/workspace.rb index c6c328e7b5..78d434d106 100644 --- a/lib/irb/workspace.rb +++ b/lib/irb/workspace.rb @@ -175,7 +175,7 @@ EOF body = (start_pos..end_pos).map do |current_pos| sprintf(fmt, pos == current_pos ? '=>' : '', current_pos + 1, lines[current_pos]) end.join("") - "\nFrom: #{file} @ line #{pos + 1} :\n\n#{body}#{Color.clear}\n" + "\nFrom: #{file} @ line #{pos + 1} :\n\n#{body}#{Color.clear if use_colorize}\n" end def IRB.delete_caller -- cgit v1.2.3