diff options
author | aycabta <aycabta@gmail.com> | 2020-11-09 15:59:52 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2020-12-05 02:58:58 +0900 |
commit | dbfc1f30d59e595793aaf19fe2b774c103def087 (patch) | |
tree | 4f3b5363d76c90c38fe468bcbb94752898695490 /test/reline | |
parent | 48742614df2f68a682226613dcaefe3dea2b1cab (diff) | |
download | ruby-dbfc1f30d59e595793aaf19fe2b774c103def087.tar.gz |
[ruby/reline] Add alias vi-movement-mode to vi-command-mode for compatibility
https://github.com/ruby/reline/commit/a79c297567
Diffstat (limited to 'test/reline')
-rw-r--r-- | test/reline/yamatanooroti/test_rendering.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb index 8bd72db4ba..dea3e7ff47 100644 --- a/test/reline/yamatanooroti/test_rendering.rb +++ b/test/reline/yamatanooroti/test_rendering.rb @@ -384,6 +384,20 @@ begin EOC end + def test_binding_for_vi_movement_mode + write_inputrc <<~LINES + set editing-mode vi + "\\C-j": vi-movement-mode + LINES + start_terminal(5, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/bin/multiline_repl}, startup_message: 'Multiline REPL.') + write(":1234\C-jhhhi0") + close + assert_screen(<<~EOC) + Multiline REPL. + prompt> :01234 + EOC + end + private def write_inputrc(content) File.open(@inputrc_file, 'w') do |f| f.write content |