mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Respect --nocolorize on REPL source highlight
This commit is contained in:
parent
65ce14e7b5
commit
e691b4da5d
1 changed files with 5 additions and 3 deletions
|
@ -222,9 +222,11 @@ module IRB
|
|||
end
|
||||
Reline.completion_append_character = nil
|
||||
Reline.completion_proc = IRB::InputCompletor::CompletionProc
|
||||
Reline.output_modifier_proc = proc do |output|
|
||||
next unless IRB::Color.colorable?
|
||||
IRB::Color.colorize_code(output)
|
||||
if IRB.conf[:USE_COLORIZE]
|
||||
Reline.output_modifier_proc = proc do |output|
|
||||
next unless IRB::Color.colorable?
|
||||
IRB::Color.colorize_code(output)
|
||||
end
|
||||
end
|
||||
Reline.dig_perfect_match_proc = IRB::InputCompletor::PerfectMatchedProc
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue