mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue