Get rid of nested string interpolations
* lib/irb/color.rb (IRB::Color.colorize): get rid of nesting string interpolations not to confuse ruby-mode.el
This commit is contained in:
parent
1da5c73932
commit
12644e8b02
@ -94,7 +94,8 @@ module IRB # :nodoc:
|
||||
|
||||
def colorize(text, seq)
|
||||
return text unless colorable?
|
||||
"#{seq.map { |s| "\e[#{const_get(s)}m" }.join('')}#{text}#{clear}"
|
||||
seq = seq.map { |s| "\e[#{const_get(s)}m" }.join('')
|
||||
"#{seq}#{text}#{clear}"
|
||||
end
|
||||
|
||||
def scan(code)
|
||||
|
Loading…
x
Reference in New Issue
Block a user