From c85035363feb79d283a753db1fe795fff0067213 Mon Sep 17 00:00:00 2001 From: aycabta Date: Sat, 14 Nov 2020 22:52:38 +0900 Subject: [ruby/reline] Key strokes like 2dl should behave d2l Key strokes, vi arg, operator, and motion should be treated as operator, vi arg, and motion. https://github.com/ruby/reline/commit/d1a7e74aa4 --- test/reline/test_key_actor_vi.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/reline/test_key_actor_vi.rb b/test/reline/test_key_actor_vi.rb index fb7c8042ea..edef573619 100644 --- a/test/reline/test_key_actor_vi.rb +++ b/test/reline/test_key_actor_vi.rb @@ -1234,11 +1234,11 @@ class Reline::KeyActor::ViInsert::Test < Reline::TestCase assert_cursor(8) assert_cursor_max(11) assert_line('aaa bbb ccc') - input_keys('2dl') # TODO This should delete 2 chars. + input_keys('2dl') assert_byte_pointer_size('aaa bbb ') assert_cursor(8) - assert_cursor_max(10) - assert_line('aaa bbb cc') + assert_cursor_max(9) + assert_line('aaa bbb c') end def test_vi_change_meta -- cgit v1.2.3