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

Fixes #485
This commit is contained in:
Jordon Bedwell 2012-03-05 05:37:43 -06:00
parent 9dc32f09c3
commit d0a71efb40
1 changed files with 1 additions and 1 deletions

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