mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 13:34:17 +02:00
Use #to_a for Readline::HISTORY directly
This commit is contained in:
parent
9da969cae7
commit
17ccda5413
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ module IRB
|
||||||
end
|
end
|
||||||
|
|
||||||
open(history_file, 'w', 0600 ) do |f|
|
open(history_file, 'w', 0600 ) do |f|
|
||||||
hist = history.to_a.map { |l|
|
hist = history.map { |l|
|
||||||
split_lines = l.split("\n")
|
split_lines = l.split("\n")
|
||||||
if split_lines.size == 1
|
if split_lines.size == 1
|
||||||
l
|
l
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue