summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-09-27 03:58:19 +0900
committeraycabta <aycabta@gmail.com>2021-12-24 18:23:28 +0900
commit6c3cc9c58ab95e963d6255d719e2248cafef7b49 (patch)
tree7233252a1c830a62430477c3b095abcfd038bc72 /lib
parentfd60a235f5feeb2fa63d8e9ebb54e2236c16ce90 (diff)
[ruby/reline] Rename the wrong name "em-kill-line" with the correct name "unix-line-discard"
https://github.com/ruby/reline/commit/da7af35d1f
Diffstat (limited to 'lib')
-rw-r--r--lib/reline/line_editor.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 20032315b7..a1f12f2cfa 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -2616,11 +2616,12 @@ class Reline::LineEditor
end
alias_method :kill_line, :ed_kill_line
- # 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+
+ # Editline:: +vi-kill-line-prev+ (vi: +Ctrl-U+) Delete the string from the
+ # beginning of the edit buffer to the cursor and save it to the
+ # cut buffer.
# GNU Readline:: +unix-line-discard+ (+C-u+) Kill backward from the cursor
# to the beginning of the current line.
- private def em_kill_line(key)
+ private def vi_kill_line_prev(key)
if @byte_pointer > 0
@line, deleted = byteslice!(@line, 0, @byte_pointer)
@byte_pointer = 0
@@ -2629,8 +2630,7 @@ class Reline::LineEditor
@cursor = 0
end
end
- alias_method :unix_line_discard, :em_kill_line
- alias_method :vi_kill_line_prev, :em_kill_line
+ alias_method :unix_line_discard, :vi_kill_line_prev
private def em_delete(key)
if (not @is_multiline and @line.empty?) or (@is_multiline and @line.empty? and @buffer_of_lines.size == 1)