summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-09-27 01:14:31 +0900
committergit <svn-admin@ruby-lang.org>2021-09-27 01:16:15 +0900
commita230ff0f83005c18e8da95d53027e3b726152875 (patch)
treebe78937904ec0247d2cf37cc68aebcd757bd7d48
parent3f7b08d2cbdaa2d8c917e53cfa57210d0d99b0bf (diff)
[ruby/reline] ^K is kill-line and ^U is unix-line-discard for inputrc
https://github.com/ruby/reline/commit/5936071940
-rw-r--r--lib/reline/line_editor.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 10ff766dcc..71b56b4c3b 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -2529,6 +2529,7 @@ class Reline::LineEditor
@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
@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)