diff options
author | aycabta <aycabta@gmail.com> | 2020-11-09 15:55:53 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2020-12-05 02:58:58 +0900 |
commit | 48742614df2f68a682226613dcaefe3dea2b1cab (patch) | |
tree | e4f4549de18dbd5cf4cbc790bb960e1c97c924dd /lib | |
parent | 9750c27afc99034960b74e8951718ca07cc353a8 (diff) |
[ruby/reline] Move alias_method to right after original definition
https://github.com/ruby/reline/commit/b7c8b93fa9
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reline/line_editor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 10ce208e93..a6424efcc1 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -1229,6 +1229,7 @@ class Reline::LineEditor arg -= 1 ed_prev_char(key, arg: arg) if arg > 0 end + alias_method :backward_char, :ed_prev_char private def vi_first_print(key) @byte_pointer, @cursor = Reline::Unicode.vi_first_print(@line) @@ -1956,7 +1957,6 @@ class Reline::LineEditor ed_prev_char(key) @config.editing_mode = :vi_command end - alias_method :backward_char, :ed_prev_char private def vi_next_word(key, arg: 1) if @line.bytesize > @byte_pointer |