diff options
Diffstat (limited to 'test/reline/test_key_actor_vi.rb')
-rw-r--r-- | test/reline/test_key_actor_vi.rb | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/test/reline/test_key_actor_vi.rb b/test/reline/test_key_actor_vi.rb index f5ceda05a6..52362e5893 100644 --- a/test/reline/test_key_actor_vi.rb +++ b/test/reline/test_key_actor_vi.rb @@ -988,7 +988,7 @@ class Reline::KeyActor::ViInsert::Test < Reline::TestCase assert_line('abcde foo_bar_baz ABCDE') end - def test_ed_move_to_beg + def test_vi_first_print input_keys("abcde\C-[^") assert_byte_pointer_size('') assert_cursor(0) @@ -1005,6 +1005,23 @@ class Reline::KeyActor::ViInsert::Test < Reline::TestCase assert_cursor_max(17) end + def test_ed_move_to_beg + input_keys("abcde\C-[0") + assert_byte_pointer_size('') + assert_cursor(0) + assert_cursor_max(5) + input_keys("0\C-ki") + input_keys(" abcde\C-[0") + assert_byte_pointer_size('') + assert_cursor(0) + assert_cursor_max(6) + input_keys("0\C-ki") + input_keys(" abcde ABCDE \C-[0") + assert_byte_pointer_size('') + assert_cursor(0) + assert_cursor_max(17) + end + def test_vi_delete_meta input_keys("aaa bbb ccc ddd eee\C-[02w") assert_byte_pointer_size('aaa bbb ') |