Skip to content
Snippets Groups Projects
Commit 37a1a2b9 authored by Johnny Shields's avatar Johnny Shields Committed by GitHub
Browse files

Update rbreadline.rb

parent 0379db1b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -6131,9 +6131,8 @@ module RbReadline
end
 
def alloc_history_entry(string, ts)
string = string.encode('UTF-8', invalid: :replace, undef: :replace, replace: '')
temp = Struct.new(:line,:data,:timestamp).new
temp.line = string ? string.delete(0.chr) : string
temp.line = string ? string.encode('UTF-8', invalid: :replace, undef: :replace, replace: '').delete(0.chr) : string
temp.data = nil
temp.timestamp = ts
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment