From fe0df7dcfc92b81d3508473a08584f8372418323 Mon Sep 17 00:00:00 2001 From: aycabta Date: Tue, 10 Dec 2019 17:27:43 +0900 Subject: Change encoding of completion strings --- lib/reline/line_editor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3