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

ruby-changes:68132

From: aycabta <ko1@a...>
Date: Mon, 27 Sep 2021 01:16:29 +0900 (JST)
Subject: [ruby-changes:68132] a230ff0f83 (master): [ruby/reline] ^K is kill-line and ^U is unix-line-discard for inputrc

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

From a230ff0f83005c18e8da95d53027e3b726152875 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Mon, 27 Sep 2021 01:14:31 +0900
Subject: [ruby/reline] ^K is kill-line and ^U is unix-line-discard for inputrc

https://github.com/ruby/reline/commit/5936071940
---
 lib/reline/line_editor.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 10ff766..71b56b4 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -2529,6 +2529,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L2529
       @rest_height += 1
     end
   end
+  alias_method :kill_line, :ed_kill_line
 
   private def em_kill_line(key)
     if @byte_pointer > 0
@@ -2539,7 +2540,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L2540
       @cursor = 0
     end
   end
-  alias_method :kill_line, :em_kill_line
+  alias_method :unix_line_discard, :em_kill_line
   alias_method :vi_kill_line_prev, :em_kill_line
 
   private def em_delete(key)
-- 
cgit v1.1


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

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