summaryrefslogtreecommitdiff
path: root/test/reline/yamatanooroti
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-10-01 14:16:42 +0900
committergit <svn-admin@ruby-lang.org>2021-10-03 14:53:19 +0900
commitd31279fe6f54f0d9571c978912c3fb566c8abd45 (patch)
tree3a85af874a889337654824d8b8a0068a063810c2 /test/reline/yamatanooroti
parent95522ef8b97b27fb6ada357f835491a42f75400c (diff)
[ruby/reline] Add a test for rerendering arg prompt after pasting
https://github.com/ruby/reline/commit/5414a42b0e
Diffstat (limited to 'test/reline/yamatanooroti')
-rw-r--r--test/reline/yamatanooroti/test_rendering.rb11
1 files changed, 11 insertions, 0 deletions
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
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