[前][次][番号順一覧][スレッド一覧]

ruby-changes:63943

From: aycabta <ko1@a...>
Date: Sat, 5 Dec 2020 03:09:43 +0900 (JST)
Subject: [ruby-changes:63943] 48742614df (master): [ruby/reline] Move alias_method to right after original definition

https://git.ruby-lang.org/ruby.git/commit/?id=48742614df

From 48742614df2f68a682226613dcaefe3dea2b1cab Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Mon, 9 Nov 2020 15:55:53 +0900
Subject: [ruby/reline] Move alias_method to right after original definition

https://github.com/ruby/reline/commit/b7c8b93fa9

diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 10ce208..a6424ef 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -1229,6 +1229,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L1229
     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 https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L1957
     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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]