mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] Add doc about em-kill-line macro
https://github.com/ruby/reline/commit/2e46493aff
This commit is contained in:
parent
bad1e153d4
commit
a9c59b13da
1 changed files with 4 additions and 0 deletions
|
@ -2632,6 +2632,10 @@ class Reline::LineEditor
|
|||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue