Skip to content

Commit d0a8f14

Browse files
st0012ko1
authored andcommitted
Disable colored inspect when coloring is disabled
1 parent a29e88b commit d0a8f14

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/debug/thread_client.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ def colorize str, color
2424
end
2525

2626
def colored_inspect(obj)
27-
IRB::ColorPrinter.pp(obj, "")
27+
if CONFIG[:use_colorize]
28+
IRB::ColorPrinter.pp(obj, "")
29+
else
30+
obj.pretty_inspect
31+
end
2832
end
2933

3034
def colorize_cyan(str)

0 commit comments

Comments
 (0)