summaryrefslogtreecommitdiff
path: root/test/reline/yamatanooroti/test_rendering.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2020-12-06 17:45:05 +0900
committeraycabta <aycabta@gmail.com>2020-12-08 00:08:41 +0900
commit3bf7b999e503199e2e9fe68ade25ee6830b3e57e (patch)
treeba4fc352f13290f31b012e4ed73c000949f59b72 /test/reline/yamatanooroti/test_rendering.rb
parentb5ef4ad3120eabd0a6107524ca9503c19afdc8a5 (diff)
[ruby/reline] Editing to initial content is not just cursor moving
https://github.com/ruby/reline/commit/0a4f175b0a
Diffstat (limited to 'test/reline/yamatanooroti/test_rendering.rb')
-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 84c0580e4bd..1dc5ac3ea89 100644
--- a/test/reline/yamatanooroti/test_rendering.rb
+++ b/test/reline/yamatanooroti/test_rendering.rb
@@ -441,6 +441,17 @@ begin
EOC
end
+ def test_backspace_until_returns_to_initial
+ start_terminal(5, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/bin/multiline_repl}, startup_message: 'Multiline REPL.')
+ write("ABC")
+ write("\C-h\C-h\C-h")
+ close
+ assert_screen(<<~EOC)
+ Multiline REPL.
+ prompt>
+ EOC
+ end
+
private def write_inputrc(content)
File.open(@inputrc_file, 'w') do |f|
f.write content