summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/irb/ext/save-history.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/ext/save-history.rb b/lib/irb/ext/save-history.rb
index f7247898ab..dfde9d6fae 100644
--- a/lib/irb/ext/save-history.rb
+++ b/lib/irb/ext/save-history.rb
@@ -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