Use #to_a for Readline::HISTORY directly

This commit is contained in:
aycabta 2019-07-15 08:32:50 +09:00
parent 9da969cae7
commit 17ccda5413

View File

@ -106,7 +106,7 @@ module IRB
end
open(history_file, 'w', 0600 ) do |f|
hist = history.to_a.map { |l|
hist = history.map { |l|
split_lines = l.split("\n")
if split_lines.size == 1
l