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

ruby-changes:70535

From: aycabta <ko1@a...>
Date: Fri, 24 Dec 2021 18:23:06 +0900 (JST)
Subject: [ruby-changes:70535] a9c59b13da (master): [ruby/reline] Add doc about em-kill-line macro

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

From a9c59b13da161eec3b7a1b028f83af142509d802 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Mon, 27 Sep 2021 04:24:26 +0900
Subject: [ruby/reline] Add doc about em-kill-line macro

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

diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index d94821e6fe8..74198491daa 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -2632,6 +2632,10 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L2632
   end
   alias_method :unix_line_discard, :vi_kill_line_prev
 
+  # Editline:: +em-kill-line+ (not bound) Delete the entire contents of the
+  #            edit buffer and save it to the cut buffer. +vi-kill-line-prev+
+  # GNU Readline:: +kill-whole-line+ (not bound) Kill all characters on the
+  #                current line, no matter where point is.
   private def em_kill_line(key)
     if @line.size > 0
       @kill_ring.append(@line.dup, true)
-- 
cgit v1.2.1


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

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