diff --git a/lib/pry/default_commands/hist.rb b/lib/pry/default_commands/hist.rb index 34aa8676..991dbd76 100644 --- a/lib/pry/default_commands/hist.rb +++ b/lib/pry/default_commands/hist.rb @@ -86,7 +86,7 @@ class Pry output.puts "Saving history in #{file_name}..." - File.open(file_name, 'w') { |f| f.write(@history.to_s) } + File.open(file_name, 'w') { |f| f.write(@history.raw) } output.puts "History saved." end