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 /lib | |
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 'lib')
-rw-r--r-- | lib/reline/line_editor.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index a6424efcc1..ea1c913ee9 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -1957,6 +1957,7 @@ class Reline::LineEditor ed_prev_char(key) @config.editing_mode = :vi_command end + alias_method :vi_movement_mode, :vi_command_mode private def vi_next_word(key, arg: 1) if @line.bytesize > @byte_pointer |