ruby-changes:68217
From: aycabta <ko1@a...>
Date: Sun, 3 Oct 2021 14:53:29 +0900 (JST)
Subject: [ruby-changes:68217] d31279fe6f (master): [ruby/reline] Add a test for rerendering arg prompt after pasting
https://git.ruby-lang.org/ruby.git/commit/?id=d31279fe6f From d31279fe6f54f0d9571c978912c3fb566c8abd45 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Fri, 1 Oct 2021 14:16:42 +0900 Subject: [ruby/reline] Add a test for rerendering arg prompt after pasting https://github.com/ruby/reline/commit/5414a42b0e --- test/reline/yamatanooroti/test_rendering.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb index 122b4e0149..f5274cc787 100644 --- a/test/reline/yamatanooroti/test_rendering.rb +++ b/test/reline/yamatanooroti/test_rendering.rb @@ -1067,6 +1067,17 @@ begin https://github.com/ruby/ruby/blob/trunk/test/reline/yamatanooroti/test_rendering.rb#L1067 EOC end + def test_rerender_argument_prompt_after_pasting + start_terminal(20, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl}, startup_message: 'Multiline REPL.') + write('abcdef') + write("\M-3\C-h") + close + assert_screen(<<~'EOC') + Multiline REPL. + prompt> abc + EOC + end + def write_inputrc(content) File.open(@inputrc_file, 'w') do |f| f.write content -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/