diff options
author | aycabta <aycabta@gmail.com> | 2019-12-10 17:27:43 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-12-10 17:28:09 +0900 |
commit | fe0df7dcfc92b81d3508473a08584f8372418323 (patch) | |
tree | 71b0fd77a23c84b3ec6750569138963315e4a909 /lib/reline | |
parent | 60c53ff6ee1eed054fc3d78ad6c06cbfc56900d6 (diff) | |
download | ruby-fe0df7dcfc92b81d3508473a08584f8372418323.tar.gz |
Change encoding of completion strings
Diffstat (limited to 'lib/reline')
-rw-r--r-- | lib/reline/line_editor.rb | 2 |
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 |