зеркало из https://github.com/github/ruby.git
Drop method obsoleted by b83119be9e
We might need to do the same thing in IRB::Color now, but I'm not doing that as I assume ANSI escape sequence does not come from a user input though Reline.
This commit is contained in:
Родитель
b83119be9e
Коммит
061c781a09
|
@ -433,17 +433,6 @@ class Reline::LineEditor
|
|||
@config.editing_mode
|
||||
end
|
||||
|
||||
private def escaped_print(str)
|
||||
@output.print str.chars.map { |gr|
|
||||
escaped = Reline::Unicode::EscapedPairs[gr.ord]
|
||||
if escaped
|
||||
escaped
|
||||
else
|
||||
gr
|
||||
end
|
||||
}.join
|
||||
end
|
||||
|
||||
private def menu(target, list)
|
||||
@menu_info = MenuInfo.new(target, list)
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче