Use #to_a for Readline::HISTORY directly
This commit is contained in:
parent
9da969cae7
commit
17ccda5413
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user