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:
Takashi Kokubun 2019-05-25 00:38:18 -07:00
Родитель b83119be9e
Коммит 061c781a09
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 6FFC433B12EE23DD
1 изменённых файлов: 0 добавлений и 11 удалений

Просмотреть файл

@ -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