1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Use @history.raw instead of @history.to_s to avoid colour in the saved history file.

This commit is contained in:
Jordon Bedwell 2012-03-05 05:37:43 -06:00
parent 9dc32f09c3
commit a627a56f6a

View file

@ -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