summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-12-10 17:27:43 +0900
committeraycabta <aycabta@gmail.com>2019-12-10 17:28:09 +0900
commitfe0df7dcfc92b81d3508473a08584f8372418323 (patch)
tree71b0fd77a23c84b3ec6750569138963315e4a909
parent60c53ff6ee1eed054fc3d78ad6c06cbfc56900d6 (diff)
Change encoding of completion strings
-rw-r--r--lib/reline/line_editor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 2986bdd154..74c5489ba7 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -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