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

Change encoding of completion strings

This commit is contained in:
aycabta 2019-12-10 17:27:43 +09:00
parent 60c53ff6ee
commit fe0df7dcfc

View file

@ -904,7 +904,7 @@ class Reline::LineEditor
target = before
end
postposing = @line.byteslice(@byte_pointer, @line.bytesize - @byte_pointer)
[preposing, target, postposing]
[preposing.encode(@encoding), target.encode(@encoding), postposing.encode(@encoding)]
end
def confirm_multiline_termination