diff options
author | aycabta <aycabta@gmail.com> | 2021-12-16 10:19:52 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-12-19 11:19:50 +0900 |
commit | 7159af3491763aeeaf7accec426ff228d7dbfa3b (patch) | |
tree | f4bc196b53a92f21f37bfe6715c526eab2caa704 /test/reline/yamatanooroti | |
parent | f3e30b26c509c6dd707bc07c4a73fbac2576e9e2 (diff) | |
download | ruby-7159af3491763aeeaf7accec426ff228d7dbfa3b.tar.gz |
[ruby/reline] Clear dialog in pasting
https://github.com/ruby/reline/commit/dabf5313e0
Diffstat (limited to 'test/reline/yamatanooroti')
-rw-r--r-- | test/reline/yamatanooroti/test_rendering.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb index e369c977f4..0d1100f70c 100644 --- a/test/reline/yamatanooroti/test_rendering.rb +++ b/test/reline/yamatanooroti/test_rendering.rb @@ -1217,6 +1217,17 @@ begin EOC end + def test_clear_dialog_in_pasting + start_terminal(10, 40, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --autocomplete}, startup_message: 'Multiline REPL.') + write("S") + write("tring ") + close + assert_screen(<<~'EOC') + Multiline REPL. + prompt> String + EOC + end + def write_inputrc(content) File.open(@inputrc_file, 'w') do |f| f.write content |