ruby-changes:59076
From: aycabta <ko1@a...>
Date: Thu, 5 Dec 2019 13:07:38 +0900 (JST)
Subject: [ruby-changes:59076] 20031f8b74 (master): Change encoding of completion list
https://git.ruby-lang.org/ruby.git/commit/?id=20031f8b74 From 20031f8b74a224bed88bfd149d59d6176c4f58e2 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Thu, 5 Dec 2019 13:06:08 +0900 Subject: Change encoding of completion list diff --git a/test/reline/test_key_actor_vi.rb b/test/reline/test_key_actor_vi.rb index be55a10..8516619 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 https://github.com/ruby/ruby/blob/trunk/test/reline/test_key_actor_vi.rb#L8 @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 https://github.com/ruby/ruby/blob/trunk/test/reline/test_key_actor_vi.rb#L830 %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 https://github.com/ruby/ruby/blob/trunk/test/reline/test_key_actor_vi.rb#L886 %w{ foo_bar foo_bar_baz + }.map { |i| + i.encode(@encoding) } } input_keys('foo') -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/