summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortomoya ishida <tomoyapenguin@gmail.com>2024-03-24 19:47:18 +0900
committergit <svn-admin@ruby-lang.org>2024-03-24 10:47:22 +0000
commitb0eda83ee0c34d265277635a1e13591d6367bd01 (patch)
tree95512262e0391e57fa49bac8beabd2eef7b1e722 /test
parentb03705dbaf80ae445ab9fa38b52e7f7ac0b6829a (diff)
[ruby/reline] Add mode_string to prompt calculation dependencies
(https://github.com/ruby/reline/pull/658) * Add mode_string to prompt calculation dependencies * Update vi show-mode-in-prompt test https://github.com/ruby/reline/commit/a0cee06ec5
Diffstat (limited to 'test')
-rw-r--r--test/reline/yamatanooroti/test_rendering.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb
index 527da519c1..efb1e01562 100644
--- a/test/reline/yamatanooroti/test_rendering.rb
+++ b/test/reline/yamatanooroti/test_rendering.rb
@@ -197,9 +197,12 @@ begin
LINES
start_terminal(5, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl}, startup_message: 'Multiline REPL.')
write(":a\n\C-[k")
+ write("i\n:a")
+ write("\C-[h")
close
assert_screen(<<~EOC)
- Multiline REPL.
+ (ins)prompt> :a
+ => :a
(ins)prompt> :a
=> :a
(cmd)prompt> :a