diff options
author | aycabta <[email protected]> | 2020-12-18 23:35:15 +0900 |
---|---|---|
committer | aycabta <[email protected]> | 2020-12-19 02:12:11 +0900 |
commit | af2c81e10c15c267611e59f11b7152545c617826 (patch) | |
tree | e02bc8cb69d4ca1c6a208e886f920a5be1f178eb /test | |
parent | 671f2762fb8a4832d2c17322ee600f53c91f76f5 (diff) |
[ruby/reline] Bind yank-pop correctly
https://github.com/ruby/reline/commit/3c74beac65
Diffstat (limited to 'test')
-rw-r--r-- | test/reline/test_key_actor_emacs.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/reline/test_key_actor_emacs.rb b/test/reline/test_key_actor_emacs.rb index 5ec8be6621..2ba6a32b93 100644 --- a/test/reline/test_key_actor_emacs.rb +++ b/test/reline/test_key_actor_emacs.rb @@ -2167,6 +2167,24 @@ class Reline::KeyActor::Emacs::Test < Reline::TestCase end end + def test_em_yank_pop + input_keys("def hoge\C-w\C-b\C-f\C-w", false) + assert_byte_pointer_size('') + assert_cursor(0) + assert_cursor_max(0) + assert_line('') + input_keys("\C-y", false) + assert_byte_pointer_size('def ') + assert_cursor(4) + assert_cursor_max(4) + assert_line('def ') + input_keys("\M-\C-y", false) + assert_byte_pointer_size('hoge') + assert_cursor(4) + assert_cursor_max(4) + assert_line('hoge') + end + =begin # TODO: move KeyStroke instance from Reline to LineEditor def test_key_delete input_keys('ab') |