diff options
author | aycabta <aycabta@gmail.com> | 2019-12-05 13:06:08 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-12-05 13:06:18 +0900 |
commit | 20031f8b74a224bed88bfd149d59d6176c4f58e2 (patch) | |
tree | 4da410bde66f688c06014268f056ba75bc6928fe | |
parent | df76f2c577b6567b617be2df9451123cc450d1cc (diff) |
Change encoding of completion list
-rw-r--r-- | test/reline/test_key_actor_vi.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/reline/test_key_actor_vi.rb b/test/reline/test_key_actor_vi.rb index be55a10e77..8516619573 100644 --- a/test/reline/test_key_actor_vi.rb +++ b/test/reline/test_key_actor_vi.rb @@ -8,8 +8,9 @@ class Reline::KeyActor::ViInsert::Test < Reline::TestCase @config.read_lines(<<~LINES.split(/(?<=\n)/)) set editing-mode vi LINES + @encoding = (RELINE_TEST_ENCODING rescue Encoding.default_external) @line_editor = Reline::LineEditor.new(@config) - @line_editor.reset(@prompt, (RELINE_TEST_ENCODING rescue Encoding.default_external)) + @line_editor.reset(@prompt, @encoding) end def test_vi_command_mode @@ -829,6 +830,8 @@ class Reline::KeyActor::ViInsert::Test < Reline::TestCase %w{ foo_bar foo_bar_baz + }.map { |i| + i.encode(@encoding) } } input_keys('foo') @@ -883,6 +886,8 @@ class Reline::KeyActor::ViInsert::Test < Reline::TestCase %w{ foo_bar foo_bar_baz + }.map { |i| + i.encode(@encoding) } } input_keys('foo') |