diff options
author | tomoya ishida <[email protected]> | 2024-04-04 00:50:03 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-04-04 17:18:47 +0900 |
commit | 8088c88d01a0c35ee4ce833fa8ab054d4cc6bc95 (patch) | |
tree | 0be6b04e61766f99951099f1296ab1cdb4d56035 /test/reline | |
parent | 80e31663f399a1fe106fff0fffb9e222e37a037d (diff) |
[ruby/reline] Handle INT signal correctly, remove handle_cleared
because clear(C-l) is not a signal
(https://github.com/ruby/reline/pull/646)
https://github.com/ruby/reline/commit/3debb0ae2f
Diffstat (limited to 'test/reline')
-rw-r--r-- | test/reline/test_key_actor_emacs.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/reline/test_key_actor_emacs.rb b/test/reline/test_key_actor_emacs.rb index 2311af0f5a..0dff275f6e 100644 --- a/test/reline/test_key_actor_emacs.rb +++ b/test/reline/test_key_actor_emacs.rb @@ -255,18 +255,18 @@ class Reline::KeyActor::Emacs::Test < Reline::TestCase end def test_ed_clear_screen - refute(@line_editor.instance_variable_get(:@cleared)) + @line_editor.instance_variable_get(:@rendered_screen).lines = [[]] input_keys("\C-l", false) - assert(@line_editor.instance_variable_get(:@cleared)) + assert_empty(@line_editor.instance_variable_get(:@rendered_screen).lines) end def test_ed_clear_screen_with_inputed input_keys('abc') input_keys("\C-b", false) - refute(@line_editor.instance_variable_get(:@cleared)) + @line_editor.instance_variable_get(:@rendered_screen).lines = [[]] assert_line_around_cursor('ab', 'c') input_keys("\C-l", false) - assert(@line_editor.instance_variable_get(:@cleared)) + assert_empty(@line_editor.instance_variable_get(:@rendered_screen).lines) assert_line_around_cursor('ab', 'c') end |