summaryrefslogtreecommitdiff
path: root/lib/irb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-02-08 11:08:57 +0900
committergit <svn-admin@ruby-lang.org>2021-02-11 20:31:29 +0900
commitb2d2d25b94fd9699408759f5b8b394f54f57ef89 (patch)
tree24f1c358dfff388a15626444b7ce2ab2414beb88 /lib/irb
parentd77a42fbfd60f4e4f49f1feb56e089494fbf3572 (diff)
downloadruby-b2d2d25b94fd9699408759f5b8b394f54f57ef89.tar.gz
[ruby/irb] Suppress colorize on Windows tests
https://github.com/ruby/irb/commit/5be9354cf9
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/workspace.rb2
1 files changed, 1 insertions, 1 deletions
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