Skip to content

Commit 5414a42

Browse files
committed
Add a test for rerendering arg prompt after pasting
1 parent 996bbf8 commit 5414a42

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/reline/yamatanooroti/test_rendering.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,6 +1067,17 @@ def test_dialog_callback_returns_nil
10671067
EOC
10681068
end
10691069

1070+
def test_rerender_argument_prompt_after_pasting
1071+
start_terminal(20, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl}, startup_message: 'Multiline REPL.')
1072+
write('abcdef')
1073+
write("\M-3\C-h")
1074+
close
1075+
assert_screen(<<~'EOC')
1076+
Multiline REPL.
1077+
prompt> abc
1078+
EOC
1079+
end
1080+
10701081
def write_inputrc(content)
10711082
File.open(@inputrc_file, 'w') do |f|
10721083
f.write content

0 commit comments

Comments
 (0)