Use @history.raw instead of @history.to_s to avoid colour in the saved history file.
Fixes #485
This commit is contained in:
parent
9dc32f09c3
commit
d0a71efb40
|
@ -86,7 +86,7 @@ class Pry
|
||||||
|
|
||||||
output.puts "Saving history in #{file_name}..."
|
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."
|
output.puts "History saved."
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue